methodsnm.visualize
index
/builds/lehrenfeld/methodsnm/git-repo/jlcontent/src/methodsnm/visualize.py

 
Modules
       
matplotlib.tri
numpy
matplotlib.pyplot
matplotlib.colors

 
Functions
       
DrawFunction1D(f, sampling=10, mesh=None, show_mesh=False)
DrawFunction2D( f, sampling=10, mesh=None, show_mesh=False, vmin=None, vmax=None, shrink_eps=0, contour=False, figsize=(10, 6) )
DrawMesh1D(mesh)
DrawMesh2D(mesh)
DrawSegmentFE(fe, sampling=100, xkcd_style=False, derivative=False)
DrawShapes(fes, sampling=10)
DrawTriangleFE(fe, sampling=10, contour=False, figsize=(10, 6))
RefTriangleIPs(sampling, shrink_eps=0)
identify_best_subplot_pattern(L)
Given the number of subplots L, this function identifies the best subplot pattern
to use for a plot with L subplots. The function returns the number of rows and columns
for the subplot grid.
 
Args:
- L: int, the number of subplots
 
Returns:
- N: int, the number of rows in the subplot grid
- M: int, the number of columns in the subplot grid