@classmethod
def from_lines(cls, ds, fields, lines, figure_size=5.0, font_size=14.0, field_labels=None):
    "\n        A class method for constructing a line plot from multiple sampling lines\n\n        Parameters\n        ----------\n\n        ds : :class:`yt.data_objects.static_output.Dataset`\n            This is the dataset object corresponding to the\n            simulation output to be plotted.\n        fields : field name or list of field names\n            The name(s) of the field(s) to be plotted.\n        lines : list of :class:`yt.visualization.line_plot.LineBuffer` instances\n            The lines from which to sample data\n        figure_size : int or two-element iterable of ints\n            Size in inches of the image.\n            Default: 5 (5x5)\n        fontsize : int\n            Font size for all text in the plot.\n            Default: 14\n        field_labels : dictionary\n            Keys should be the field names. Values should be latex-formattable\n            strings used in the LinePlot legend\n            Default: None\n\n        Example\n        --------\n        >>> ds = yt.load('SecondOrderTris/RZ_p_no_parts_do_nothing_bcs_cone_out.e', step=-1)\n        >>> fields = [field for field in ds.field_list if field[0] == 'all']\n        >>> lines = []\n        >>> lines.append(yt.LineBuffer(ds, [0.25, 0, 0], [0.25, 1, 0], 100, label='x = 0.25'))\n        >>> lines.append(yt.LineBuffer(ds, [0.5, 0, 0], [0.5, 1, 0], 100, label='x = 0.5'))\n        >>> plot = yt.LinePlot.from_lines(ds, fields, lines)\n        >>> plot.save()\n\n        "
    obj = cls.__new__(cls)
    obj.lines = lines
    cls._initialize_instance(obj, ds, fields, figure_size, font_size, field_labels)
    obj._setup_plots()
    return obj
A class method for constructing a line plot from multiple sampling lines

Parameters
----------

ds : :class:`yt.data_objects.static_output.Dataset`
    This is the dataset object corresponding to the
    simulation output to be plotted.
fields : field name or list of field names
    The name(s) of the field(s) to be plotted.
lines : list of :class:`yt.visualization.line_plot.LineBuffer` instances
    The lines from which to sample data
figure_size : int or two-element iterable of ints
    Size in inches of the image.
    Default: 5 (5x5)
fontsize : int
    Font size for all text in the plot.
    Default: 14
field_labels : dictionary
    Keys should be the field names. Values should be latex-formattable
    strings used in the LinePlot legend
    Default: None

Example
--------
>>> ds = yt.load('SecondOrderTris/RZ_p_no_parts_do_nothing_bcs_cone_out.e', step=-1)
>>> fields = [field for field in ds.field_list if field[0] == 'all']
>>> lines = []
>>> lines.append(yt.LineBuffer(ds, [0.25, 0, 0], [0.25, 1, 0], 100, label='x = 0.25'))
>>> lines.append(yt.LineBuffer(ds, [0.5, 0, 0], [0.5, 1, 0], 100, label='x = 0.5'))
>>> plot = yt.LinePlot.from_lines(ds, fields, lines)
>>> plot.save()
@classmethod
def from_lines(cls, ds, fields, lines, figure_size=5.0, font_size=14.0, field_labels=None):
    "\n        A class method for constructing a line plot from multiple sampling lines\n\n        Parameters\n        ----------\n\n        ds : :class:`yt.data_objects.static_output.Dataset`\n            This is the dataset object corresponding to the\n            simulation output to be plotted.\n        fields : field name or list of field names\n            The name(s) of the field(s) to be plotted.\n        lines : list of :class:`yt.visualization.line_plot.LineBuffer` instances\n            The lines from which to sample data\n        figure_size : int or two-element iterable of ints\n            Size in inches of the image.\n            Default: 5 (5x5)\n        fontsize : int\n            Font size for all text in the plot.\n            Default: 14\n        field_labels : dictionary\n            Keys should be the field names. Values should be latex-formattable\n            strings used in the LinePlot legend\n            Default: None\n\n        Example\n        --------\n        >>> ds = yt.load('SecondOrderTris/RZ_p_no_parts_do_nothing_bcs_cone_out.e', step=-1)\n        >>> fields = [field for field in ds.field_list if field[0] == 'all']\n        >>> lines = []\n        >>> lines.append(yt.LineBuffer(ds, [0.25, 0, 0], [0.25, 1, 0], 100, label='x = 0.25'))\n        >>> lines.append(yt.LineBuffer(ds, [0.5, 0, 0], [0.5, 1, 0], 100, label='x = 0.5'))\n        >>> plot = yt.LinePlot.from_lines(ds, fields, lines)\n        >>> plot.save()\n\n        "
    obj = cls.__new__(cls)
    obj.lines = lines
    cls._initialize_instance(obj, ds, fields, figure_size, font_size, field_labels)
    obj._setup_plots()
    return obj