puncturedfem.plot.MeshPlot
Plot list of edges.
Attributes:
| Name | Type | Description |
|---|---|---|
edges |
list of Edge
|
The edges to be plotted. |
quad_dict |
QuadDict
|
The dictionary of quadrature rules. |
title |
str
|
The title of the plot. |
show_orientation |
bool
|
If True, the orientation of the edges is shown. |
show_grid |
bool
|
If True, the grid is shown. |
show_axis |
bool
|
If True, the axis is shown. |
keep_open |
bool
|
If True, the plot is kept open. |
pad |
float
|
The padding around the plot. |
__init__(edges, n=32, reparameterize=False)
Initialize a MeshPlot object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
edges |
list of Edge
|
The edges to be plotted |
required |
n |
int, optional
|
The number of points to sample on each edge. The default is 32. |
32
|
reparameterize |
bool, optional
|
If True, the edges are reparameterized. The default is False. |
False
|
draw(show_plot=True, filename='', **kwargs)
Draw the plot.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
show_plot |
bool, optional
|
Whether to show the plot. The default is True. |
True
|
filename |
str, optional
|
The filename to save the plot to. The default is "", which results in no file being saved. |
''
|
Other Parameters:
| Name | Type | Description |
|---|---|---|
title |
str, optional
|
The title of the plot. The default is "", i.e. no title. |
show_orientation |
bool, optional
|
If True, the orientation of the edges is shown. The default is False. |
show_grid |
bool, optional
|
If True, the grid is shown. The default is False. |
show_axis |
bool, optional
|
If True, the axis is shown. The default is True. |
keep_open |
bool, optional
|
If True, the plot is kept open. The default is False. |
pad |
float, optional
|
The padding around the plot. The default is 0.1. |
set_edges(edges)
Set the edges to be plotted.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
edges |
list of Edge
|
The edges to be plotted. |
required |