FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

mep12 on manual_axis.py by ericmjl · Pull Request #4884 · matplotlib/matplotlib · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
7 changes: 3 additions & 4 deletions examples/pylab_examples/manual_axis.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@

This example should be considered deprecated and is left just for demo
purposes for folks wanting to make a pseudo-axis

"""

import numpy as np
from pylab import figure, show
import matplotlib.pyplot as plt
import matplotlib.lines as lines


Expand Down Expand Up @@ -47,7 +46,7 @@ def make_yaxis(ax, xloc=0, offset=0.05, **props):
props = dict(color='black', linewidth=2, markeredgewidth=2)
x = np.arange(200.)
y = np.sin(2*np.pi*x/200.) + np.random.rand(200) - 0.5
fig = figure(facecolor='white')
fig = plt.figure(facecolor='white')
ax = fig.add_subplot(111, frame_on=False)
ax.axison = False
ax.plot(x, y, 'd', markersize=8, markerfacecolor='blue')
Expand All @@ -56,4 +55,4 @@ def make_yaxis(ax, xloc=0, offset=0.05, **props):
make_xaxis(ax, 0, offset=0.1, **props)
make_yaxis(ax, 0, offset=5, **props)

show()
plt.show()

Back | FazBrowse Home | New Git URL