@classmethod
def _initialize_instance(cls, obj, ds, fields, figure_size=5.0, fontsize=14.0, field_labels=None):
    obj._x_unit = None
    obj._y_units = {}
    obj._titles = {}
    data_source = ds.all_data()
    obj.fields = data_source._determine_fields(fields)
    obj.plots = LinePlotDictionary(data_source)
    obj.include_legend = defaultdict(bool)
    super(LinePlot, obj).__init__(data_source, figure_size, fontsize)
    for f in obj.fields:
        finfo = obj.data_source.ds._get_field_info(*f)
        if finfo.take_log:
            obj._field_transform[f] = log_transform
        else:
            obj._field_transform[f] = linear_transform
    if (field_labels is None):
        obj.field_labels = {}
    else:
        obj.field_labels = field_labels
    for f in obj.fields:
        if (f not in obj.field_labels):
            obj.field_labels[f] = f[1]
@classmethod
def _initialize_instance(cls, obj, ds, fields, figure_size=5.0, fontsize=14.0, field_labels=None):
    obj._x_unit = None
    obj._y_units = {}
    obj._titles = {}
    data_source = ds.all_data()
    obj.fields = data_source._determine_fields(fields)
    obj.plots = LinePlotDictionary(data_source)
    obj.include_legend = defaultdict(bool)
    super(LinePlot, obj).__init__(data_source, figure_size, fontsize)
    for f in obj.fields:
        finfo = obj.data_source.ds._get_field_info(*f)
        if finfo.take_log:
            obj._field_transform[f] = log_transform
        else:
            obj._field_transform[f] = linear_transform
    if (field_labels is None):
        obj.field_labels = {}
    else:
        obj.field_labels = field_labels
    for f in obj.fields:
        if (f not in obj.field_labels):
            obj.field_labels[f] = f[1]