act.plotting.DistributionDisplay#
- class act.plotting.DistributionDisplay(ds, subplot_shape=(1,), ds_name=None, **kwargs)[source]#
This class is used to make distribution related plots. It is inherited from Display and therefore contains all of Display’s attributes and methods.
Examples
To create a DistributionDisplay with 3 rows, simply do:
ds = act.io.read_arm_netcdf(the_file) disp = act.plotting.DistsributionDisplay(ds, subplot_shape=(3,), figsize=(15, 5))
The DistributionDisplay constructor takes in the same keyword arguments as plt.subplots. For more information on the plt.subplots keyword arguments, see the matplotlib documentation. If no subplot_shape is provided, then no figure or axis will be created until add_subplots or plots is called.
|
Adds a colorbar to the plot. |
|
Adds subplots to the Display object. |
|
This assigns the Display to a specific figure and axis. |
|
Group the Display by specific units of time. |
|
This procedure will plot a heatmap of a histogram from 2 variables. |
|
This procedure will produce a pie chart for the selected fields. |
|
This procedure will produce a scatter plot from 2 variables. |
|
This procedure plots a stairstep plot of a size distribution. |
|
This procedure will plot a stacked bar graph of a histogram. |
|
This procedure will plot a stairstep plot of a histogram. |
|
This procedure will produce a violin plot for the selected field (or fields). |
|
This will place a Display object into a specific subplot. |
|
Sets the 1:1 ratio line. |
|
Sets the x range of the plot. |
|
Sets the y range of the plot. |