Skip to main content
added 6 characters in body
Source Link
Trenton McKinney
  • 63.4k
  • 41
  • 172
  • 215

Deprecation note:
As per the official Matplotlib guideofficial Matplotlib guide, usage of the pylab module is no longer recommended. Please consider using the matplotlib.pyplot module instead, as described by this other answer.

The following seems to work:

from pylab import rcParams
rcParams['figure.figsize'] = 5, 10

This makes the figure's width 5 inches, and its height 10 inches.

The Figure class then uses this as the default value for one of its arguments.

Deprecation note:
As per the official Matplotlib guide, usage of the pylab module is no longer recommended. Please consider using the matplotlib.pyplot module instead, as described by this other answer.

The following seems to work:

from pylab import rcParams
rcParams['figure.figsize'] = 5, 10

This makes the figure's width 5 inches, and its height 10 inches.

The Figure class then uses this as the default value for one of its arguments.

Deprecation note:
As per the official Matplotlib guide, usage of the pylab module is no longer recommended. Please consider using the matplotlib.pyplot module instead, as described by this other answer.

The following seems to work:

from pylab import rcParams
rcParams['figure.figsize'] = 5, 10

This makes the figure's width 5 inches, and its height 10 inches.

The Figure class then uses this as the default value for one of its arguments.

Rollback to Revision 14
Source Link
Peter Duniho
  • 71.1k
  • 7
  • 114
  • 149

Deprecation note:
As per the official Matplotlib guide, usage of the pylab module is no longer recommended. Please consider using the matplotlib.pyplot module instead, as described by this other answer.

The following seems to work:

from pylab import rcParams
rcParams['figure.figsize'] = 5, 10

This makes the figure's width 5 inches, and its height 10 inches.

The Figure class then uses this as the default value for one of its arguments.

The following seems to work:

from pylab import rcParams
rcParams['figure.figsize'] = 5, 10

This makes the figure's width 5 inches, and its height 10 inches.

The Figure class then uses this as the default value for one of its arguments.

Deprecation note:
As per the official Matplotlib guide, usage of the pylab module is no longer recommended. Please consider using the matplotlib.pyplot module instead, as described by this other answer.

The following seems to work:

from pylab import rcParams
rcParams['figure.figsize'] = 5, 10

This makes the figure's width 5 inches, and its height 10 inches.

The Figure class then uses this as the default value for one of its arguments.

Rollback to Revision 3
Source Link
Braiam
  • 4.5k
  • 11
  • 50
  • 83

Deprecation note:
As per the official Matplotlib guide, usage of the pylab module is no longer recommended. Please consider using the matplotlib.pyplot module instead, as described by this other answer.

The following seems to work:

from pylab import rcParams
rcParams['figure.figsize'] = 5, 10

This makes the figure's width 5 inches, and its height 10 inches.

The Figure class then uses this as the default value for one of its arguments.

Deprecation note:
As per the official Matplotlib guide, usage of the pylab module is no longer recommended. Please consider using the matplotlib.pyplot module instead, as described by this other answer.

The following seems to work:

from pylab import rcParams
rcParams['figure.figsize'] = 5, 10

This makes the figure's width 5 inches, and its height 10 inches.

The Figure class then uses this as the default value for one of its arguments.

The following seems to work:

from pylab import rcParams
rcParams['figure.figsize'] = 5, 10

This makes the figure's width 5 inches, and its height 10 inches.

The Figure class then uses this as the default value for one of its arguments.

Notice removed Content dispute by CommunityBot
Post Unlocked by CommunityBot
Post Locked by Brad Larson
Notice added Content dispute by Brad Larson
Rollback to Revision 4
Source Link
Loading
Please respect the decision of the author of the Meta question.
Source Link
user3453226
user3453226
Loading
Rollback to Revision 7
Source Link
ImportanceOfBeingErnest
  • 342.9k
  • 61
  • 743
  • 774
Loading
Rollback to Revision 9
Source Link
ImportanceOfBeingErnest
  • 342.9k
  • 61
  • 743
  • 774
Loading
Rollback to Revision 4
Source Link
Loading
This for sure works on any operating system; it does not need to be mentionned. However it needs to be put before **figure** creation, not before plt.plot.
Source Link
ImportanceOfBeingErnest
  • 342.9k
  • 61
  • 743
  • 774
Loading
Copy edited.
Source Link
user3453226
user3453226
Loading
Rollback to Revision 5
Source Link
ImportanceOfBeingErnest
  • 342.9k
  • 61
  • 743
  • 774
Loading
Rollback to Revision 4
Source Link
Loading
deleted 228 characters in body
Source Link
ImportanceOfBeingErnest
  • 342.9k
  • 61
  • 743
  • 774
Loading
Added Deprecation note. Why discuss it on meta? Just do it! The community can just win from it.
Source Link
Loading
no reason for the wild import. + formatting
Source Link
Elazar
  • 22k
  • 4
  • 52
  • 68
Loading
Source Link
tatwright
  • 38.7k
  • 6
  • 24
  • 9
Loading