Skip to content

Commit c8ba52f

Browse files
authored
Merge pull request #7250 from trpham/7206-MEP12-compliant-Plots
Adds docstrings to demo_curvelinear_grid.py and demo_curvelinear_grid…
2 parents 179204c + e5529b8 commit c8ba52f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

examples/axisartist/demo_curvelinear_grid.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
"""
2+
Custom grid and ticklines.
3+
4+
This example demonstrates how to use GridHelperCurveLinear to define
5+
custom grids and ticklines by applying a transformation on the grid.
6+
This can be used, as showcase on the second plot, to create polar
7+
projections in a rectangular box.
8+
"""
9+
110
import numpy as np
211

312
import matplotlib.pyplot as plt
@@ -46,6 +55,7 @@ def inv_tr(x, y):
4655

4756

4857
import mpl_toolkits.axisartist.angle_helper as angle_helper
58+
4959
from matplotlib.projections import PolarAxes
5060
from matplotlib.transforms import Affine2D
5161

examples/axisartist/demo_curvelinear_grid2.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
"""
2+
Custom grid and ticklines.
3+
4+
This example demonstrates how to use GridHelperCurveLinear to define
5+
custom grids and ticklines by applying a transformation on the grid.
6+
As showcase on the plot, a 5x5 matrix is displayed on the axes.
7+
"""
8+
19
import numpy as np
210
import matplotlib.pyplot as plt
311

0 commit comments

Comments
 (0)