8000 Modified restrictions on `margins` method by AtharvaKhare · Pull Request #9459 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Modified restrictions on margins method #9459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 19, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
DOC axes_margins.py example
  • Loading branch information
NelleV committed Oct 19, 2017
commit 0fb8573797f808749cc1228a1796618a736cec87
11 changes: 5 additions & 6 deletions examples/axes_grid1/axes_margins.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
"""
============
Margins demo
============

The following example shows an alternative method for scaling
by using Axes.margins instead of Axes.set_xlim and Axes.set_ylim.
=====================================
Zooming in and out using Axes.margins
=====================================

This example shows how to zoom in and out of a plot using Axes.margins
instead of Axes.set_xlim and Axes.set_ylim.
"""
import numpy as np
import matplotlib.pyplot as plt
Expand Down
0