SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S



1
(8)
2
(2)
3
(11)
4
(11)
5
(3)
6
(3)
7
(8)
8
(1)
9
(10)
10
(16)
11
(1)
12
(8)
13
(21)
14
(13)
15
(15)
16
(6)
17
(12)
18
(2)
19
(6)
20
(6)
21
(5)
22
(2)
23
(9)
24
25
26
(2)
27
(3)
28
(2)
29
(10)
30
(2)
31
(4)

Showing 14 results of 14

From: Ben E. <bj...@ai...> - 2010年12月15日 22:08:41
I am trying to plot an 840 x 680 element matrix using pcolor.
matplotlib has decided that the xrange should be 900 and the yrange
700. Is there a way to tell matplotlib to always use x/yranges that
always match the dimensions of the matrix?
Thanks, Ben
From: andes <czu...@ya...> - 2010年12月15日 16:46:43
hello,
When I save as an "eps" a figure created by matplotlib I face the problem
that the inclined lines in the plot appear to be jagged when I open the
"eps" (please see figure below). This problem doesn't appear when I save the
figure as a pdf or png. Do you you know if there is a simple solution to
this problem that I can implement in my example code (shown below)?
I would greatly appreciate any advice. 
#----example code
from numpy import *
from pylab import *
x=linspace(-1,1,100)
y=x
figure(1)
p1,=plot(x,y,lw=3)
savefig("figeps.eps")
#---jagged line in plot
http://old.nabble.com/file/p30465591/jagged.png 
-- 
View this message in context: http://old.nabble.com/jagged-line-in-eps-from-matplitlib-tp30465591p30465591.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Benjamin R. <ben...@ou...> - 2010年12月15日 16:05:48
On Mon, Dec 13, 2010 at 9:10 PM, Xunchen Liu <xun...@gm...> wrote:
> Hello,
>
> I'm plotting some experimental data and found my x axis variable are
> displayed like 1, 2, 3, +1000. It seems depend on how you set a stopper or
> something.
> I'm wondering how to make it display just 1001, 1002, 1003?
>
> thanks!
>
The behavior you are seeing is called "tick offset" and is controlled by the
axis tick formatter. This can be controlled in different ways, but here is
one approach:
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(1000, 1010)
y = np.random.random((10,))
fig = plt.figure()
ax = fig.gca()
ax.plot(x, y)
# Get the formatter for the major ticks of the x-axis
# and set the 'useOffset' attribute to False.
ax.get_xaxis().get_major_formatter().set_useOffset(False)
plt.show()
I hope that helps!
Ben Root
From: Benjamin R. <ben...@ou...> - 2010年12月15日 15:50:38
On Wed, Dec 15, 2010 at 9:46 AM, Benoist Laurent <be...@ib...> wrote:
> Hi all,
>
> I'm still a bit stuck with this probleme of polar annotation.
> Let me present the problem in a different way.
>
> I've got the center of my circle, its radius and even some points on the
> circle.
> Actually, I'd like to annotate these points (red crosses in the joined
> picture).
> How would you do that?
>
> My best try gave me the green numbers.
>
> Thanks in advance,
> Ben
>
>
>
Can you include the source code (if it is simple) that you used to generate
this example, and we could probably help you out.
Ben Root
From: Benoist L. <be...@ib...> - 2010年12月15日 15:38:50
Hi all,
I'm still a bit stuck with this probleme of polar annotation.
Let me present the problem in a different way.
I've got the center of my circle, its radius and even some points on 
the circle.
Actually, I'd like to annotate these points (red crosses in the joined 
picture).
How would you do that?
My best try gave me the green numbers.
Thanks in advance,
Ben
Le 26 nov. 10 à 14:41, Benoist Laurent a écrit :
> Thank you for your answer.
> I read the text and annotate manual pages.
>
> I don't understand how the "polar" xycoords/textcoords works.
> I guess I should use this but its not clear to me.
>
>
>
>
> Le 26 nov. 10 à 14:13, Alan G Isaac a écrit :
>
>> On 11/26/2010 8:12 AM, Benoist Laurent wrote:
>>> How can I manage the annotation of points forming a circle if I have
>>> their coordinates?
>>
>> http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.annotate
>>
>> http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.text
>>
>> http://matplotlib.sourceforge.net/examples/api/joinstyle.html
>>
>> hth,
>> Alan Isaac
>>
>> ------------------------------------------------------------------------------
>> Increase Visibility of Your 3D Game App & Earn a Chance To Win 500ドル!
>> Tap into the largest installed PC base & get more eyes on your game 
>> by
>> optimizing for Intel(R) Graphics Technology. Get started today with
>> the
>> Intel(R) Software Partner Program. Five 500ドル cash prizes are up for
>> grabs.
>> http://p.sf.net/sfu/intelisp-dev2dev
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
>
> ------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win 500ドル!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with 
> the
> Intel(R) Software Partner Program. Five 500ドル cash prizes are up for 
> grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Benjamin R. <ben...@ou...> - 2010年12月15日 15:19:54
On Tue, Dec 14, 2010 at 2:29 PM, vt603800 <vt6...@ba...> wrote:
> I tried to upgrade to version 1.0 but without success. Could anybody tell
> where it went wrong?
> I downloaded the package matplotlib-1.0.0.tar.gz from
> http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/
>
> First I tried a easy install, doing
> easy_install -m matplotlib-1.0.0.tar.gz
> from the command line but after this I checked the current version in Idle
> and it still was 0.99
>
> So I manually removed all the matplotlib files from /usr/lib/pymodules/
> and did the easy install again from the command line
> but now I can't import matplotlib anymore in Idle.
>
> This was the installation report:
>
> install_dir /usr/local/lib/python2.6/dist-packages/
>
> Processing matplotlib-1.0.0.tar.gz
>
> Running matplotlib-1.0.0/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install-dWh4_f/matplotlib-1.0.0/egg-dist-tmp-ohZvCJ
>
> basedirlist is: ['/usr/local', '/usr']
>
>
> ============================================================================
>
> BUILDING MATPLOTLIB
>
> matplotlib: 1.0.0
>
> python: 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) [GCC
>
> 4.4.5]
>
> platform: linux2
>
>
>
> REQUIRED DEPENDENCIES
>
> numpy: 1.3.0
>
> freetype2: found, but unknown version (no pkg-config)
>
> * WARNING: Could not find 'freetype2' headers in
> any
>
> * of '/usr/local/include', '/usr/include', '.',
>
> * '/usr/local/include/freetype2',
>
> * '/usr/include/freetype2', './freetype2'.
>
>
>
> OPTIONAL BACKEND DEPENDENCIES
>
> libpng: found, but unknown version (no pkg-config)
>
> * Could not find 'libpng' headers in any of
>
> * '/usr/local/include', '/usr/include', '.'
>
> Tkinter: no
>
> * Using default library and include directories
> for
>
> * Tcl and Tk because a Tk window failed to open.
>
> * You may need to define DISPLAY for Tk to work so
>
> * that setup can determine where your libraries
> are
>
> * located. Tkinter present, but header files are
> not
>
> * found. You may need to install development
>
> * packages.
>
> wxPython: 2.8.11.0
>
> * WxAgg extension not required for wxPython >= 2.8
>
> pkg-config: looking for pygtk-2.0 gtk+-2.0
>
> * Package pygtk-2.0 was not found in the
> pkg-config
>
> * search path. Perhaps you should add the
> directory
>
> * containing `pygtk-2.0.pc' to the PKG_CONFIG_PATH
>
> * environment variable No package 'pygtk-2.0'
> found
>
> * Package gtk+-2.0 was not found in the pkg-config
>
> * search path. Perhaps you should add the
> directory
>
> * containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH
>
> * environment variable No package 'gtk+-2.0' found
>
> * You may need to install 'dev' package(s) to
>
> * provide header files.
>
> Gtk+: no
>
> * Could not find Gtk+ headers in any of
>
> * '/usr/local/include', '/usr/include', '.'
>
> Mac OS X native: no
>
> Qt: no
>
> Qt4: no
>
> Cairo: 1.8.8
>
>
>
> OPTIONAL DATE/TIMEZONE DEPENDENCIES
>
> datetime: present, version unknown
>
> dateutil: 1.4.1
>
> pytz: 2010b
>
>
>
> OPTIONAL USETEX DEPENDENCIES
>
> dvipng: no
>
> ghostscript: 8.71
>
> latex: no
>
> pdftops: 0.14.3
>
>
>
> [Edit setup.cfg to suppress the above messages]
>
>
> ============================================================================
>
> pymods ['pylab']
>
> packages ['matplotlib', 'matplotlib.backends',
> 'matplotlib.backends.qt4_editor', 'matplotlib.projections',
> 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests',
> 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid',
> 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist',
> 'matplotlib.sphinxext', 'matplotlib.numerix', 'matplotlib.numerix.mlab',
> 'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
> 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
> 'matplotlib.tri', 'matplotlib.delaunay']
>
> warning: no files found matching 'MANIFEST'
>
> warning: no files found matching 'examples/data/*'
>
> warning: no files found matching 'lib/mpl_toolkits'
>
> gcc: error trying to exec 'cc1plus': execvp: No such file or directory
>
> error: Setup script exited with error: command 'gcc' failed with exit
> status 1
>
>
> Hans R
>
>
Hans,
First of all, don't do easyinstall. Follow the instructions for building
here:
http://matplotlib.sourceforge.net/users/installing.html#installing-from-source
Be sure to note the build requirements, as they need to be installed first.
Also, according to your build log, you do not have gcc installed. If gcc is
not installed on your linux machine, then most likely none of the needed
build tools are available on your machine. This would make building numpy
and other tools from source impossible. On a Fedora system, I think all you
need is the 'gcc' package.
On a Debian-based system (like Ubuntu) you can make this whole dependency
process easier with the following command:
sudo apt-get build-depends python-matplotlib
That will find (and install?) all packages that are required for building
matplotlib. Be sure to first remove any previous builds of matplotlib from
your system before trying this, of course.
I hope that helps!
Ben Root
From: Åke K. <ake...@gm...> - 2010年12月15日 14:55:10
I added a feature request. It would be awesome to just have an extra tag
whether to include invisible artists.
On Wed, Dec 15, 2010 at 10:36 PM, Benjamin Root <ben...@ou...> wrote:
> On Wed, Dec 15, 2010 at 8:13 AM, Åke Kullenberg <ake...@gm...>wrote:
>
>> I am using matplotlib in a wxpython application where series are added
>> dynamically to subplots in a figure. I added the very handy option to toggle
>> series' visibility (by calling set_visible(False). The catch is however that
>> the invisible series are included in the rescaling of the artists (Line2D
>> all of them). Is there any way to fix that? The behavior I'm after is for
>> rescaling to be based on visible artists only.
>>
>> The way I am doing the rescaling currently is simply by calling these two
>> methods from the event handler:
>>
>> event.inaxes.relim()
>> event.inaxes.autoscale_view(tight=None, scalex=False, scaley=True)
>>
>>
> This might be a good feature request to make (if it hasn't already...):
>
> https://sourceforge.net/tracker/?group_id=80706
>
> I would like to add one caveat, however. There are some cases where one
> would want to include the bounding boxes of the invisible artist elements in
> determining the axes limits. A particular use case would be animations. I
> believe that matplotlib would be best served by having a simple option
> available to let the user determine if they want to include invisible
> artists or not.
>
> Ben Root
>
>
From: Benjamin R. <ben...@ou...> - 2010年12月15日 14:36:34
On Wed, Dec 15, 2010 at 8:13 AM, Åke Kullenberg <ake...@gm...>wrote:
> I am using matplotlib in a wxpython application where series are added
> dynamically to subplots in a figure. I added the very handy option to toggle
> series' visibility (by calling set_visible(False). The catch is however that
> the invisible series are included in the rescaling of the artists (Line2D
> all of them). Is there any way to fix that? The behavior I'm after is for
> rescaling to be based on visible artists only.
>
> The way I am doing the rescaling currently is simply by calling these two
> methods from the event handler:
>
> event.inaxes.relim()
> event.inaxes.autoscale_view(tight=None, scalex=False, scaley=True)
>
>
This might be a good feature request to make (if it hasn't already...):
https://sourceforge.net/tracker/?group_id=80706
I would like to add one caveat, however. There are some cases where one
would want to include the bounding boxes of the invisible artist elements in
determining the axes limits. A particular use case would be animations. I
believe that matplotlib would be best served by having a simple option
available to let the user determine if they want to include invisible
artists or not.
Ben Root
From: John F. <joh...@nt...> - 2010年12月15日 14:23:36
I have tried to install matplotlib to our IBM cluster P5(aix5)
and get this error message (see below):
The python script output xlC_r xlC_r (2 times) (see end of this email).
Is that right?
John
f05n07l:matplotlib-1.0.0$ python setup.py build
basedirlist is: ['/usr/local']
============================================================================
BUILDING MATPLOTLIB
 matplotlib: 1.0.0
 python: 2.6.3 (r263:75183, Oct 23 2009, 14:41:52) [C]
 platform: aix5
REQUIRED DEPENDENCIES
 numpy: 1.5.1rc2
 freetype2: 9.22.3
OPTIONAL BACKEND DEPENDENCIES
 libpng: 1.2.35
 Tkinter: Tkinter: 73770, Tk: 8.4, Tcl: 8.4
 wxPython: no
 * wxPython not found
 Gtk+: no
 * Building for Gtk+ requires pygtk; you must be
able
 * to "import gtk" in your build/install
environment
 Mac OS X native: no
 Qt: no
 Qt4: no
 Cairo: no
OPTIONAL DATE/TIMEZONE DEPENDENCIES
 datetime: present, version unknown
 dateutil: matplotlib will provide
 pytz: matplotlib will provide
adding pytz
OPTIONAL USETEX DEPENDENCIES
 dvipng: no
 ghostscript: 5.50
 latex: no
 pdftops: 1.00
[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends',
'matplotlib.backends.qt4_editor', 'matplotlib.projections',
'matplotlib.testing', 'matplotlib.testing.jpl_units',
'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d',
'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1',
'mpl_toolkits.axisartist', 'matplotlib.sphinxext',
'matplotlib.numerix', 'matplotlib.numerix.mlab',
'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra',
'matplotlib.numerix.random_array', 'matplotlib.numerix.fft',
'matplotlib.tri', 'matplotlib.delaunay', 'pytz', 'dateutil',
'dateutil/zoneinfo']
running build
running build_py
copying lib/matplotlib/mpl-data/matplotlibrc ->
build/lib.aix-5.3-2.6/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf ->
build/lib.aix-5.3-2.6/matplotlib/mpl-data
running build_ext
building 'matplotlib.ft2font' extension
xlC_r xlC_r
-bI:/usr/local/python/python-2.6.3/lib/python2.6/config/python.exp
build/temp.aix-5.3-2.6/src/ft2font.o
build/temp.aix-5.3-2.6/src/mplutils.o
build/temp.aix-5.3-2.6/CXX/cxx_extensions.o
build/temp.aix-5.3-2.6/CXX/IndirectPythonInterface.o
build/temp.aix-5.3-2.6/CXX/cxxsupport.o
build/temp.aix-5.3-2.6/CXX/cxxextensions.o -L/opt/freeware/lib
-L/usr/local/lib -lfreetype -lz -lstdc++ -lm -o
build/lib.aix-5.3-2.6/matplotlib/ft2font.so
/usr/vacpp/bin/xlC_r: 1501-228 (W) input file xlC_r not found
error: command 'xlC_r' failed with exit status 252
M.Sc. John Floan, NTNU. IT Division, HPC E-Mail: joh...@nt...
Hogskoleringen 7i Mobile: +47 918 97646
N-7034 Trondheim
Norway FAX: +47 735 98098
From: Åke K. <ake...@gm...> - 2010年12月15日 14:13:57
I am using matplotlib in a wxpython application where series are added
dynamically to subplots in a figure. I added the very handy option to toggle
series' visibility (by calling set_visible(False). The catch is however that
the invisible series are included in the rescaling of the artists (Line2D
all of them). Is there any way to fix that? The behavior I'm after is for
rescaling to be based on visible artists only.
The way I am doing the rescaling currently is simply by calling these two
methods from the event handler:
event.inaxes.relim()
event.inaxes.autoscale_view(tight=None, scalex=False, scaley=True)
From: Skip M. <sk...@po...> - 2010年12月15日 12:50:20
> Skip,You can call figlegend() and build a legend for the figure,
> irrespectively of any axes.
Thanks. Sounds like exactly what I need.
Skip
From: Teng L. <lew...@gm...> - 2010年12月15日 12:25:58
Linux 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 2010 i686
GNU/Linux
matplotlib 0.99.1.1
The script below is copied from
http://matplotlib.sourceforge.net/examples/pylab_examples/hatch_demo.html
It works. But it can not be saved as an eps file.
I have a lot of histogram plots using "hatch" needed to be saved as eps, is
it possible to fix this bug?
Thanks.
"""
Hatching (pattern filled polygons) is supported currently in the PS,
PDF, SVG and Agg backends only.
"""
import matplotlib.pyplot as plt
from matplotlib.patches import Ellipse, Polygon
fig = plt.figure()
ax1 = fig.add_subplot(131)
ax1.bar(range(1,5), range(1,5), color='red', edgecolor='black', hatch="/")
ax1.bar(range(1,5), [6] * 4, bottom=range(1,5), color='blue',
edgecolor='black', hatch='//')
ax1.set_xticks([1.5,2.5,3.5,4.5])
ax2 = fig.add_subplot(132)
bars = ax2.bar(range(1,5), range(1,5), color='yellow', ecolor='black') + \
 ax2.bar(range(1, 5), [6] * 4, bottom=range(1,5), color='green',
ecolor='black')
ax2.set_xticks([1.5,2.5,3.5,4.5])
patterns = ('-', '+', 'x', '\\', '*', 'o', 'O', '.')
for bar, pattern in zip(bars, patterns):
 bar.set_hatch(pattern)
ax3 = fig.add_subplot(133)
ax3.fill([1,3,3,1],[1,1,2,2], fill=False, hatch='\\')
ax3.add_patch(Ellipse((4,1.5), 4, 0.5, fill=False, hatch='*'))
ax3.add_patch(Polygon([[0,0],[4,1.1],[6,2.5],[2,1.4]], closed=True,
 fill=False, hatch='/'))
ax3.set_xlim((0,6))
ax3.set_ylim((0,2.5))
plt.show()
From: Bob L. <bo...@tr...> - 2010年12月15日 04:15:09
Can anyone help me figure out how to identify arrow and function key
events with matplotlib? I can get normal alphanumeric KeyEvents, but
arrow and function keys arrive with their "key" attribute set to
"None".
I'm using matplotlib 0.99.1.1 with PyQt4.
Thanks.
 - Bob Lewis
From: Jason G. <jas...@cr...> - 2010年12月15日 03:24:20
On 10/28/10 1:18 PM, Will Grover wrote:
> Hello matplotlib-users,
>
> I'm using subplots to make an array of plots, but because some of the plots
> have wider y-axis tick labels than others, some of the subplots end up
> looking too close to each other. Here's an image that shows what I mean:
>
> http://web.mit.edu/wgrover/www/spacing.png
>
> I'm currently using pylab.subplots_adjust(hspace = __, vspace = __) to
> adjust the subplot spacing, but since that applies to all subplots, no one
> setting looks right for the entire array of plots. Is there any way to set
> the spacing so that the subplots *plus tick labels* are evenly distributed?
> Or can I manually specify the spacing between each subplot? Thanks,
(to those more knowledgeable than me...)
Is this something that ImageGrid would solve?
http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#axes-grid1
Also, could you use subplotpar to adjust spacing in each subplot?
http://matplotlib.sourceforge.net/users/gridspec.html#adjust-gridspec-layout
Thanks,
Jason
1 message has been excluded from this view by a project administrator.

Showing 14 results of 14

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /