common
Common functions for PROCESS summary plots.
load_plot_image(name)
Load an image bundled with the PROCESS plotting resources.
Source code in process/core/io/plot/summary/common.py
43 44 45 46 47 | |
place_plot_image(axis, name, bounds, *, zorder=10)
Place a bundled image in an inset axes and hide its frame.
Source code in process/core/io/plot/summary/common.py
50 51 52 53 54 55 | |
get_pulse_timings(mfile, scan)
Construct pulse timings from an MFILE scan.
Source code in process/core/io/plot/summary/common.py
58 59 60 61 62 63 64 65 66 67 68 | |
box_style(colour, alpha=1.0, linewidth=2, **kwargs)
Matplotlib boxstyle
Source code in process/core/io/plot/summary/common.py
71 72 73 74 75 76 77 78 79 | |
text_layout(fig, h_align='left', v_align='bottom')
Matplotlib text layout
Source code in process/core/io/plot/summary/common.py
82 83 84 85 86 87 88 89 | |
setup_axis(axis, xmin, xmax, ymin, ymax)
Matplotlib axis setup
Source code in process/core/io/plot/summary/common.py
92 93 94 95 96 97 98 | |
add_colourbar(contour_fill, axis, colourbar_axis)
Add colourbar to axis
Source code in process/core/io/plot/summary/common.py
101 102 103 104 105 106 | |
add_panel(axis, x, top, width, height, text, style, text_x_offset=0.004, fontsize=9, transform=None, text_position=None, linespacing=1.1, text_kwargs=None)
Add one fixed-size box and its unchanged original text.
Source code in process/core/io/plot/summary/common.py
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 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | |
add_symbol(axis, panel_name, x, top)
Add a large symbol at its original figure-relative position.
Source code in process/core/io/plot/summary/common.py
171 172 173 174 175 176 177 178 179 180 181 182 183 | |
color_key(axis, mfile, scan, colour_scheme)
Function to plot the colour key
Source code in process/core/io/plot/summary/common.py
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | |