psyplot.project.plot.densityreg

plot.densityreg(*args, **kwargs)

Make a density plot and draw a fit from x to y of points

This plotting method adds data arrays and plots them via psy_reg.plotters.DensityRegPlotter plotters

To plot data from a netCDF file type:

>>> psy.plot.densityreg(filename, name=['my_variable'], ...)

Possible formatoptions are

axiscolor

background

bins

bounds

cbar

cbarspacing

ci

clabel

clabelprops

clabelsize

clabelweight

cmap

color

coord

cticklabels

ctickprops

cticks

cticksize

ctickweight

datagrid

density

error

erroralpha

extend

figtitle

figtitleprops

figtitlesize

figtitleweight

fit

fix

grid

id_color

ideal

interp_bounds

labelprops

labelsize

labelweight

legend

legendlabels

levels

line_xlim

lineplot

linewidth

marker

markersize

mask

mask_datagrid

maskbetween

maskgeq

maskgreater

maskleq

maskless

miss_color

nboot

normed

p0

param_bounds

plot

post

post_timing

precision

sym_lims

text

ticksize

tickweight

tight

title

titleprops

titlesize

titleweight

transpose

xlabel

xlim

xrange

xrotation

xticklabels

xtickprops

xticks

ylabel

ylim

yrange

yrotation

yticklabels

ytickprops

yticks

Examples

To explore the formatoptions and their documentations, use the keys, summaries and docs methods. For example:

>>> import psyplot.project as psy

# show the keys corresponding to a group or multiple
# formatopions
>>> psy.plot.densityreg.keys('labels')

# show the summaries of a group of formatoptions or of a
# formatoption
>>> psy.plot.densityreg.summaries('title')

# show the full documentation
>>> psy.plot.densityreg.docs('plot')

# or access the documentation via the attribute
>>> psy.plot.densityreg.plot