plot
Matplotlib-Based Plotting Routines¶
This submodule contains methods related to visualize some of the standard Markov state plots.
plot_ck_test(ck, states=None, frames_per_unit=1, unit='frames', grid=(3, 3))
¶
Plot CK-Test results.
This routine is a basic helper function to visualize the results of msmhelper.msm.chapman_kolmogorov_test.
Parameters:
-
ck
(dict
) –Dictionary holding for each lagtime the CK equation and with 'md' the reference.
-
states
(ndarray
, default:None
) –List containing all states to plot the CK-test.
-
frames_per_unit
(float
, default:1
) –Number of frames per given unit. This is used to scale the axis accordingly.
-
unit
([frames, fs, ps, ns, us]
, default:'frames'
) –Unit to use for label.
-
grid
((int, int)
, default:(3, 3)
) –The number of
(n_rows, n_cols)
to use for the grid layout.
Returns:
-
fig
(Figure
) –Figure holding plots.
Source code in src/msmhelper/plot/_ck_test.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
|
plot_wtd(wtd, frames_per_unit=1, unit='frames', ax=None, show_md=True, show_fliers=False)
¶
Plot waiting time distribution.
This is a wrapper function to plot the return value of msmhelper.msm.estimate_waiting_time_dist.
Parameters:
-
wtd
(dict
) –Dictionary returned from
msmhelper.msm.estimate_wtd
, holding stats of waiting time distributions. -
frames_per_unit
(float
, default:1
) –Number of frames per given unit. This is used to scale the axis accordingly.
-
unit
([frames, fs, ps, ns, us]
, default:'frames'
) –Unit to use for label.
-
ax
(Axes
, default:None
) –Axes to plot figure in. With
None
the current axes is used. -
show_md
(bool
, default:True
) –Include boxplot of MD data.
-
show_fliers
(bool
, default:False
) –Show fliers (outliers) in MD and MSM prediction.
Returns:
-
ax
(Axes
) –Return axes holding the plot.
Source code in src/msmhelper/plot/_wtd.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
|