matplotlib
Fork me on GitHub


Travis-CI:

This Page

matplotlib.pyplot.semilogy

matplotlib.pyplot.semilogy(*args, **kwargs)

Make a plot with log scaling on the y axis.

Parameters:

basey : scalar > 1

Base of the y logarithm.

subsy : None or iterable

The location of the minor yticks. None defaults to autosubs, which depend on the number of decades in the plot. See set_yscale() for details.

nonposy : {‘mask’ | ‘clip’} str

Non-positive values in y can be masked as invalid, or clipped to a very small positive number.

Returns:

Line2D

Line instance of the plot.

Other Parameters:
 

**kwargs :

This function supports all the keyword arguments of plot() and matplotlib.axes.Axes.set_xscale().

Keyword arguments also control the Line2D properties:

===================================================================================== ===============================================================================================================================================

Property Description

===================================================================================== ===============================================================================================================================================

:meth:`agg_filter <matplotlib.artist.Artist.set_agg_filter>` unknown

:meth:`alpha <matplotlib.artist.Artist.set_alpha>` float (0.0 transparent through 1.0 opaque)

:meth:`animated <matplotlib.artist.Artist.set_animated>` [True | False]

:meth:`antialiased <matplotlib.lines.Line2D.set_antialiased>` or aa [True | False]

:meth:`clip_box <matplotlib.artist.Artist.set_clip_box>` a :class:`matplotlib.transforms.Bbox` instance

:meth:`clip_on <matplotlib.artist.Artist.set_clip_on>` [True | False]

:meth:`clip_path <matplotlib.artist.Artist.set_clip_path>` [ (:class:`~matplotlib.path.Path`, :class:`~matplotlib.transforms.Transform`) | :class:`~matplotlib.patches.Patch` | None ]

:meth:`color <matplotlib.lines.Line2D.set_color>` or c any matplotlib color

:meth:`contains <matplotlib.artist.Artist.set_contains>` a callable function

:meth:`dash_capstyle <matplotlib.lines.Line2D.set_dash_capstyle>` [‘butt’ | ‘round’ | ‘projecting’]

:meth:`dash_joinstyle <matplotlib.lines.Line2D.set_dash_joinstyle>` [‘miter’ | ‘round’ | ‘bevel’]

:meth:`dashes <matplotlib.lines.Line2D.set_dashes>` sequence of on/off ink in points

:meth:`drawstyle <matplotlib.lines.Line2D.set_drawstyle>` [‘default’ | ‘steps’ | ‘steps-pre’ | ‘steps-mid’ | ‘steps-post’]

:meth:`figure <matplotlib.artist.Artist.set_figure>` a :class:`matplotlib.figure.Figure` instance

:meth:`fillstyle <matplotlib.lines.Line2D.set_fillstyle>` [‘full’ | ‘left’ | ‘right’ | ‘bottom’ | ‘top’ | ‘none’]

:meth:`gid <matplotlib.artist.Artist.set_gid>` an id string

:meth:`label <matplotlib.artist.Artist.set_label>` string or anything printable with ‘%s’ conversion.

:meth:`linestyle <matplotlib.lines.Line2D.set_linestyle>` or ls [‘solid’ | ‘dashed’, ‘dashdot’, ‘dotted’ | (offset, on-off-dash-seq) | ``’-‘`` | ``’–’`` | ``’-.’`` | ``’:’`` | ``’None’`` | ``’ ‘`` | ``’‘``]

:meth:`linewidth <matplotlib.lines.Line2D.set_linewidth>` or lw float value in points

:meth:`marker <matplotlib.lines.Line2D.set_marker>` :mod:`A valid marker style <matplotlib.markers>`

:meth:`markeredgecolor <matplotlib.lines.Line2D.set_markeredgecolor>` or mec any matplotlib color

:meth:`markeredgewidth <matplotlib.lines.Line2D.set_markeredgewidth>` or mew float value in points

:meth:`markerfacecolor <matplotlib.lines.Line2D.set_markerfacecolor>` or mfc any matplotlib color

:meth:`markerfacecoloralt <matplotlib.lines.Line2D.set_markerfacecoloralt>` or mfcalt any matplotlib color

:meth:`markersize <matplotlib.lines.Line2D.set_markersize>` or ms float

:meth:`markevery <matplotlib.lines.Line2D.set_markevery>` [None | int | length-2 tuple of int | slice | list/array of int | float | length-2 tuple of float]

:meth:`path_effects <matplotlib.artist.Artist.set_path_effects>` unknown

:meth:`picker <matplotlib.lines.Line2D.set_picker>` float distance in points or callable pick function ``fn(artist, event)``

:meth:`pickradius <matplotlib.lines.Line2D.set_pickradius>` float distance in points

:meth:`rasterized <matplotlib.artist.Artist.set_rasterized>` [True | False | None]

:meth:`sketch_params <matplotlib.artist.Artist.set_sketch_params>` unknown

:meth:`snap <matplotlib.artist.Artist.set_snap>` unknown

:meth:`solid_capstyle <matplotlib.lines.Line2D.set_solid_capstyle>` [‘butt’ | ‘round’ | ‘projecting’]

:meth:`solid_joinstyle <matplotlib.lines.Line2D.set_solid_joinstyle>` [‘miter’ | ‘round’ | ‘bevel’]

:meth:`transform <matplotlib.lines.Line2D.set_transform>` a :class:`matplotlib.transforms.Transform` instance

:meth:`url <matplotlib.artist.Artist.set_url>` a url string

:meth:`visible <matplotlib.artist.Artist.set_visible>` [True | False]

:meth:`xdata <matplotlib.lines.Line2D.set_xdata>` 1D array

:meth:`ydata <matplotlib.lines.Line2D.set_ydata>` 1D array

:meth:`zorder <matplotlib.artist.Artist.set_zorder>` any number

===================================================================================== ===============================================================================================================================================