visual Package¶
visual
Package¶
Visualisation routines for data mining
chunk_plot
Module¶
lasso_fs_init
Module¶
multi_line_plot
Module¶
nlines=3000, npts=10 rasterized, dpi=400 get too many blocks error nlines=10000, npts=10 rasterized, dpi=300 get too many blocks error nlines=10000, npts=10 rasterized, dpi=100 OK
-
pyfusion.visual.multi_line_plot.
join_segments
(*args)[source]¶ take a list or array of sequences representing line coordinates, and join them using nans as the separator. This way plotting will be faster, and rasterization will be more efficient. Works on one or more lists, typical call is
>>> x2, y2 = join_segments(x,y) >>> plt.plot(x2,y2,'r',lw=30./nlines,rasterized=True)
sp
Module¶
-
pyfusion.visual.sp.
on
(colls)[source]¶ control the overlay of points - on or off This is somewhat specialised to scatterplots as refers to a collection
-
pyfusion.visual.sp.
sp
(ds, x=None, y=None, sz=None, col=None, c=None, decimate=0, ind=None, nomode=None, size_scale=None, dot_size=30, hold=0, seed=None, colorbar=None, dither=0, legend=True, marker='o', **kwargs)[source]¶ Scatter plot front end, size_scale x, y, sz, col can be keys or variables (of matching size to ds) decimate = 0.1 selects 10% of the input, -0.1 uses a fixed key. Note: This code is messy, but the idea is sound - that is 1: Exploit the flexible colour and size of scatter 2: flexible inputs via string names or by arrays 3: Treat mode numbers specially to suppress “undefined” mode numbers dither 0: no effect -ve random seed, +ve repeated seed c is the same as col for compatibility with satter returns a collection so that they can be selectively turned on an off hold==2 returns without labelling or colorbar - suitable for a basic overlay.
subplots
Module¶
-
pyfusion.visual.subplots.
subplots
(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True, apportion=None, debug=0, *args, **kwargs)[source]¶ enhanced subplot routine, allowing for changing relative sizes apportion initially applies only to the vertical direction, first element refers to the topmost element
vis
Module¶
window_manager
Module¶
-
pyfusion.visual.window_manager.
close_matching
(str)[source]¶ close all pylab windows with str in the title, see also raise _matching
-
pyfusion.visual.window_manager.
cm
(str)¶ close all pylab windows with str in the title, see also raise _matching
-
pyfusion.visual.window_manager.
raise_matching
(str)[source]¶ raise all pylab windows with str in the title, whether they flash or raise depends on window manager and settings Note that figure(num=’myname’) is a legal way to name a fig
-
pyfusion.visual.window_manager.
rwm
(str)¶ raise all pylab windows with str in the title, whether they flash or raise depends on window manager and settings Note that figure(num=’myname’) is a legal way to name a fig
-
pyfusion.visual.window_manager.
save_matching
(str, prefix=None)[source]¶ save all pylab windows with str in the title, Note that figure(num=’myname’) is a legal way to name a fig
-
pyfusion.visual.window_manager.
swm
(str, prefix=None)¶ save all pylab windows with str in the title, Note that figure(num=’myname’) is a legal way to name a fig