|
MOTS Finder
Find non-star-shaped MOTSs
|
Contexts for convenient plot setup/management. More...
Functions | |
| def | has_latex () |
| Return whether the 'latex' command is available on the system. More... | |
| def | matplotlib_rc (opts) |
| Context manager to temporarily modify Matplotlib settings. More... | |
| def | _equal_lengths (axes, ax) |
| Modify an Axis object to have equal length axes. More... | |
| def | simple_plot_ctx (figsize=(6, 2), projection=None, usetex=None, fontsize=None, save=None, ax=None, show=True, close=False, cfg_callback=None, dpi=None, save_opts=None, subplot_kw=None) |
| Simple context for creating an setting up a figure and axis/axes. More... | |
| def | plot_ctx (figsize=(6, 2), projection=None, grid=True, xlog=False, ylog=False, xlim=(None, None), ylim=(None, None), pad=0, ypad=0, yscilimits=(-3, 3), xscilimits=None, xtick_spacing=None, pi_xticks=None, pi_yticks=None, ytick_spacing=None, title=None, xlabel=None, ylabel=None, tight=True, tight_layout=True, usetex=None, fontsize=None, save=None, ax=None, show=True, close=False, cfg_callback=None, equal_lengths=False, dpi=None, save_opts=None, subplot_kw=None) |
| Context manager for preparing a figure and applying configuration. More... | |
| def | plot_ctx_3d (zlim=(None, None), zscilimits=None, ztick_spacing=None, zlabel=None, figsize=(6, 5), azim=-60, elev=32, dist=None, cfg_callback=None, equal_lengths=False, kw) |
| As plot_ctx(), but for 3-dimensional plots of e.g. surfaces. More... | |
| def | _interpret_pad (pad, lower, upper, cur_lower, cur_upper) |
| def | pi_ticks (ax, axis='x', major=2, minor=1) |
| Show ticks in multiples of pi. More... | |
Contexts for convenient plot setup/management.
|
private |
Modify an Axis object to have equal length axes.
| ax | String containing the axes, like "xyz" that should have equal length. |
| def motsfinder.ipyutils.plotctx.has_latex | ( | ) |
Return whether the 'latex' command is available on the system.
| def motsfinder.ipyutils.plotctx.matplotlib_rc | ( | opts | ) |
Context manager to temporarily modify Matplotlib settings.
The option keys should be valid keys in the matplotlib.rcParams
dict.
| def motsfinder.ipyutils.plotctx.pi_ticks | ( | ax, | |
axis = 'x' , |
|||
major = 2 , |
|||
minor = 1 |
|||
| ) |
Show ticks in multiples of pi.
| ax | The axis object to modify. |
| axis | String representing the axis to change. Default: "x" |
| major | How many sub-intervals of [0,pi] to create. Default is 2 , i.e. a label will appear every pi/2 . |
| minor | Steps between the major steps. Set to 1 for no steps and 2 for one additional marker. Default is 1 . |
| def motsfinder.ipyutils.plotctx.plot_ctx | ( | figsize = (6, 2) , |
|
projection = None , |
|||
grid = True , |
|||
xlog = False , |
|||
ylog = False , |
|||
xlim = (None, None) , |
|||
ylim = (None, None) , |
|||
pad = 0 , |
|||
ypad = 0 , |
|||
yscilimits = (-3, 3) , |
|||
xscilimits = None , |
|||
xtick_spacing = None , |
|||
pi_xticks = None , |
|||
pi_yticks = None , |
|||
ytick_spacing = None , |
|||
title = None , |
|||
xlabel = None , |
|||
ylabel = None , |
|||
tight = True , |
|||
tight_layout = True , |
|||
usetex = None , |
|||
fontsize = None , |
|||
save = None , |
|||
ax = None , |
|||
show = True , |
|||
close = False , |
|||
cfg_callback = None , |
|||
equal_lengths = False , |
|||
dpi = None , |
|||
save_opts = None , |
|||
subplot_kw = None |
|||
| ) |
Context manager for preparing a figure and applying configuration.
This is a convenience function with which it is possible to easily create new plots or reuse existing (not yet displayed) figures. It will initialize and yield an axis object suitable for plotting into using its functions. After this, the object is configured with the chosen settings.
Finally, the figure is optionally saved to a file and/or shown using the current Matplotlib driver.
Most of the options should be described in the (user-visible) function plot_1d().
| def motsfinder.ipyutils.plotctx.plot_ctx_3d | ( | zlim = (None, None) , |
|
zscilimits = None , |
|||
ztick_spacing = None , |
|||
zlabel = None , |
|||
figsize = (6, 5) , |
|||
azim = -60 , |
|||
elev = 32 , |
|||
dist = None , |
|||
cfg_callback = None , |
|||
equal_lengths = False , |
|||
| kw | |||
| ) |
As plot_ctx(), but for 3-dimensional plots of e.g. surfaces.
| def motsfinder.ipyutils.plotctx.simple_plot_ctx | ( | figsize = (6, 2) , |
|
projection = None , |
|||
usetex = None , |
|||
fontsize = None , |
|||
save = None , |
|||
ax = None , |
|||
show = True , |
|||
close = False , |
|||
cfg_callback = None , |
|||
dpi = None , |
|||
save_opts = None , |
|||
subplot_kw = None |
|||
| ) |
Simple context for creating an setting up a figure and axis/axes.
The given ax
axis object can be a callable, in which case it is used to create an axis object (which it should return) and infer the figure from that axis. This will be done in context of the other settings, most notably the fontsize
and usetex
configurations, which should be active during axis creation.


Will contain an interactive field map to plan and draw strategies
Feture list:
Map of the field
ability to draw on the map with different colors
field locations with information and stats?


{{user.username}}
{{user.pin}}
{{user.email}}
{{user.yearOfBirth}}
if you want to change your profile image!
If you want to change your account privacy.
If you want to regenerate the PIN.