Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c8ba52f

Browse filesBrowse 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
Copy full SHA for c8ba52f

File tree

Expand file treeCollapse file tree

2 files changed

+18
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+18
-0
lines changed

‎examples/axisartist/demo_curvelinear_grid.py

Copy file name to clipboardExpand all lines: examples/axisartist/demo_curvelinear_grid.py
+10Lines 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

Copy file name to clipboardExpand all lines: examples/axisartist/demo_curvelinear_grid2.py
+8Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.