Plot Subclasses

The following are subclasses from BasePlot and follow the same API (they just have different default).

Predefined 2D Plots

plotify.custom_plots.Plot (PublicationPlot)

__init__(self, *args, *, width = 7500.0, **kwargs)

Description

Creates a Plot object.

Arguments
  • title: The title of the plot. See set_title.
  • height: The height of the plot.
  • width: The width of the plot.
  • dpi: The resolution of the plot.
  • plot3d: Whether the plot is a 3D plot or not.
  • border: Whether to draw a thin black border around the frame of the plot.
Example
plot = pl.Plot('Title')

basic

plotify.custom_plots.PublicationPlot (BasePlot)

__init__(self, title = '', height = 2600.0, width = 2600.0, dpi = 530.0, *args, **kwargs)

Description

Creates a Plot object.

Arguments
  • title: The title of the plot. See set_title.
  • height: The height of the plot.
  • width: The width of the plot.
  • dpi: The resolution of the plot.
  • plot3d: Whether the plot is a 3D plot or not.
  • border: Whether to draw a thin black border around the frame of the plot.
Example
plot = pl.Plot('Title')

basic

plotify.custom_plots.LowResPlot (BasePlot)

__init__(self, title = '', height = 975.0, width = 1800.0, dpi = 210.0, *args, **kwargs)

Description

Creates a Plot object.

Arguments
  • title: The title of the plot. See set_title.
  • height: The height of the plot.
  • width: The width of the plot.
  • dpi: The resolution of the plot.
  • plot3d: Whether the plot is a 3D plot or not.
  • border: Whether to draw a thin black border around the frame of the plot.
Example
plot = pl.Plot('Title')

basic

plotify.custom_plots.ModernPlot (PublicationPlot)

__init__(self, *args, **kwargs)

Description

Creates a Plot object.

Arguments
  • title: The title of the plot. See set_title.
  • height: The height of the plot.
  • width: The width of the plot.
  • dpi: The resolution of the plot.
  • plot3d: Whether the plot is a 3D plot or not.
  • border: Whether to draw a thin black border around the frame of the plot.
Example
plot = pl.Plot('Title')

basic

plotify.plot.Image (Drawing)

__init__(self, path, *args, **kwargs)

Description

Creates a Plot object.

Arguments
  • title: The title of the plot. See set_title.
  • height: The height of the plot.
  • width: The width of the plot.
  • dpi: The resolution of the plot.
  • plot3d: Whether the plot is a 3D plot or not.
  • border: Whether to draw a thin black border around the frame of the plot.
Example
plot = pl.Plot('Title')

basic

plotify.plot.Drawing (BasePlot)

__init__(self, *args, **kwargs)

Description

Creates a Plot object.

Arguments
  • title: The title of the plot. See set_title.
  • height: The height of the plot.
  • width: The width of the plot.
  • dpi: The resolution of the plot.
  • plot3d: Whether the plot is a 3D plot or not.
  • border: Whether to draw a thin black border around the frame of the plot.
Example
plot = pl.Plot('Title')

basic

3D Plots

plotify.plot.Plot3D (BasePlot)

__init__(self, *args, **kwargs)

Description

Creates a Plot object.

Arguments
  • title: The title of the plot. See set_title.
  • height: The height of the plot.
  • width: The width of the plot.
  • dpi: The resolution of the plot.
  • plot3d: Whether the plot is a 3D plot or not.
  • border: Whether to draw a thin black border around the frame of the plot.
Example
plot = pl.Plot('Title')

basic

projection(self, x, y, z = None, alpha = 0.1, linewidth = 0, *args, **kwargs)

set_camera(self, elev = None, azim = None)

Both parameters are angles in [0, 360].

set_notation(self, x = None, y = None, z = None)

surface(self, x, y, z = None, alpha = 0.25, linewidth = 0, *args, **kwargs)

wireframe(self, x, y, z = None, *args, **kwargs)

Animations

plotify.plot.Animation

__init__(self, fps = 24)

Initialize self. See help(type(self)) for accurate signature.

add_frame(self, image)

image should be a (height, width, 3) np.ndarry

reset(self)

rotate_3d(self, plot, duration = 8)

save(self, path)

Containers

plotify.plot.Container (BasePlot)

__init__(self, rows = 1, cols = 2, height = None, width = None, *args, **kwargs)

Description

Creates a Plot object.

Arguments
  • title: The title of the plot. See set_title.
  • height: The height of the plot.
  • width: The width of the plot.
  • dpi: The resolution of the plot.
  • plot3d: Whether the plot is a 3D plot or not.
  • border: Whether to draw a thin black border around the frame of the plot.
Example
plot = pl.Plot('Title')

basic

get_plot(self, row, col)

set_plot(self, row, col, plot)

plotify.custom_plots.ListContainer (Container)

__init__(self, list_plots, *args, **kwargs)

Description

Creates a Plot object.

Arguments
  • title: The title of the plot. See set_title.
  • height: The height of the plot.
  • width: The width of the plot.
  • dpi: The resolution of the plot.
  • plot3d: Whether the plot is a 3D plot or not.
  • border: Whether to draw a thin black border around the frame of the plot.
Example
plot = pl.Plot('Title')

basic