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






Showing 6 results of 6

From: Burly C. <bu...@mt...> - 2010年01月10日 23:13:48
Hi,
 
0.99 I've just re-tested with 0.99.1 and found it works fine.. 
b.
On 8 Jan 2010, at 18:34, Jae-Joon Lee wrote:
> What version of matplotlib are you using?
> This may be the bug that already have been fixed.
> Neither with the maintenance branch nor the current svn reproduce this problem,
> as can be easily seen from the gallery
> 
> http://matplotlib.sourceforge.net/examples/axes_grid/demo_parasite_axes2.html
> 
> -JJ
> 
> 
> On Thu, Jan 7, 2010 at 5:16 AM, Burly Cumberland <bu...@mt...> wrote:
>> Hi,
>> 
>> I've been playing around with the parasite_axes toolkit. It's very nice but
>> I discovered from the example that I always get an extra set of x and y axis
>> labels. See attached png. I've got around this by simply turning the first
>> axis off. Is this a bug in the code or the example? Also there appears to be
>> an additional set of axis label commands in the example.
>> 
>> From demo_parasite_axes2.py
>> ----------------------------------------------------------------------
>> 
>> from mpl_toolkits.axes_grid.parasite_axes import SubplotHost
>> import matplotlib.pyplot as plt
>> 
>> if 1:
>> fig = plt.figure(1)
>> plt.axis('off') # Extra line to remove unwanted axis labels
>> host = SubplotHost(fig, 111)
>> 
>> host.set_ylabel("Density")
>> host.set_xlabel("Distance")
>> 
>> par1 = host.twinx()
>> par2 = host.twinx()
>> 
>> par1.set_ylabel("Temperature")
>> 
>> par2.axis["right"].set_visible(False)
>> 
>> offset = 60, 0
>> new_axisline = par2.get_grid_helper().new_fixed_axis
>> par2.axis["right2"] = new_axisline(loc="right",
>> axes=par2,
>> offset=offset)
>> 
>> par2.axis["right2"].label.set_visible(True)
>> par2.axis["right2"].set_label("Velocity")
>> 
>> fig.add_axes(host)
>> plt.subplots_adjust(right=0.75)
>> 
>> host.set_xlim(0, 2)
>> host.set_ylim(0, 2)
>> 
>> host.set_xlabel("Distance") # Why reset these three labels..
>> host.set_ylabel("Density")
>> par1.set_ylabel("Temperature")
>> 
>> p1, = host.plot([0, 1, 2], [0, 1, 2], label="Density")
>> p2, = par1.plot([0, 1, 2], [0, 3, 2], label="Temperature")
>> p3, = par2.plot([0, 1, 2], [50, 30, 15], label="Velocity")
>> 
>> par1.set_ylim(0, 4)
>> par2.set_ylim(1, 65)
>> 
>> host.legend()
>> 
>> host.axis["left"].label.set_color(p1.get_color())
>> par1.axis["right"].label.set_color(p2.get_color())
>> par2.axis["right2"].label.set_color(p3.get_color())
>> 
>> plt.draw()
>> plt.show()
>> 
>> ------------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Verizon Developer Community
>> Take advantage of Verizon's best-in-class app development support
>> A streamlined, 14 day to market process makes app distribution fast and easy
>> Join now and get one step closer to millions of Verizon customers
>> http://p.sf.net/sfu/verizon-dev2dev
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> 
>> 
From: Gael V. <gae...@no...> - 2010年01月10日 15:57:13
On Sun, Jan 10, 2010 at 07:54:18AM -0800, Andrew Straw wrote:
> > Any interest in merging this in as an mpl_toolkit?
> It already is. :)
Me dig hole and hide.
> Any interest in writing docs and advertising it?
Well, first I'll use it :). I can advertise if I and up using it a lot.
Gaël
From: Andrew S. <str...@as...> - 2010年01月10日 15:54:25
Gael Varoquaux wrote:
> On Sun, Jan 10, 2010 at 07:32:27AM -0800, Andrew Straw wrote:
> 
>> This first is mplsizer, based on the wx layout model, and works "live"
>> (with a figure open in a GUI) as well as for saving to disk. See the
>> demo directory for, well, some demos. I haven't been using this too much
>> lately, but it still works as well as it ever did AFAIK. There is a
>> trivial bit of documentation and a copy of the source at
>> http://github.com/astraw/mplsizer
>> 
>
> Any interest in merging this in as an mpl_toolkit?
>
> 
It already is. :) Any interest in writing docs and advertising it?
From: Gael V. <gae...@no...> - 2010年01月10日 15:46:04
On Sun, Jan 10, 2010 at 07:32:27AM -0800, Andrew Straw wrote:
> This first is mplsizer, based on the wx layout model, and works "live"
> (with a figure open in a GUI) as well as for saving to disk. See the
> demo directory for, well, some demos. I haven't been using this too much
> lately, but it still works as well as it ever did AFAIK. There is a
> trivial bit of documentation and a copy of the source at
> http://github.com/astraw/mplsizer
Any interest in merging this in as an mpl_toolkit?
Gaël
From: Andrew S. <str...@as...> - 2010年01月10日 15:32:36
per freem wrote:
> hi all,
>
> i am a *huge fan* of matplotlib and use it for all plotting. one
> feature that i would find extremely useful that i believe is missing
> (but am very open to being corrected in case i overlooked something)
> is a way to define the layout of complex subplots. by this i mean
> something like R's "layout" command, which allows you to nearly
> arbitrarily arrange the subplots of a figure. this command is much
> more general than "subplot" since it does not restrict you to square
> arrangements of figure subplots.
>
> for examples, check out these figures/examples:
>
> 1. source code of complex layout:
> http://rgraphics.limnology.wisc.edu/rmargins_layout.php
> (the associated graph it produces is here:
> http://rgraphics.limnology.wisc.edu/images/layouts/rmargins_layout_thumb.png)
>
> 2. a tutorial on complex layouts with this command:
> http://www.statmethods.net/advgraphs/layout.html
> in particular, see:
> http://www.statmethods.net/advgraphs/images/layout3a.png where a
> complex layout which is currently not possible with "subplot" is made.
>
> a command like R's layout would be a tremendously helpful addition to
> matplotlib, in my opinion. it will prevent the need for annoying
> manual "postprocessing" of figures into these layouts using tools like
> Illustrator, since these figures could be generated programmatically
> instead, which much more precision.
>
> as far as i know, this cannot be done in matplotlib right now, without
> plotting your own axes (using some combination of axes grid toolkit
> and raw axes plotting.)
>
> if anyone out there has written some kind of wrappers that do
> something like the "layout" command, i would love to know about it. if
> it's still in testing and not part of the current matplotlib, i'd be
> more than happy to beta test this for anyone and try it on many
> examples.
> 
Hi Per,
I wrote two things that may be of interest to you.
This first is mplsizer, based on the wx layout model, and works "live"
(with a figure open in a GUI) as well as for saving to disk. See the
demo directory for, well, some demos. I haven't been using this too much
lately, but it still works as well as it ever did AFAIK. There is a
trivial bit of documentation and a copy of the source at
http://github.com/astraw/mplsizer
The second is svg_stack. This is used as a post-processing step that
requires saving my figures as svg files and then composing them with
this tool. There is some minimal documentation and the source at
http://github.com/astraw/svg_stack . The nice thing with svg_stack is
that you can use svg files from other sources (i.e. not just
matplotlib). Also, everything can be manually adjusted in Inkscape,
which itself has nice command-line export to .png and .pdf capabilities.
-Andrew
From: per f. <per...@gm...> - 2010年01月10日 00:05:20
hi all,
i am a *huge fan* of matplotlib and use it for all plotting. one
feature that i would find extremely useful that i believe is missing
(but am very open to being corrected in case i overlooked something)
is a way to define the layout of complex subplots. by this i mean
something like R's "layout" command, which allows you to nearly
arbitrarily arrange the subplots of a figure. this command is much
more general than "subplot" since it does not restrict you to square
arrangements of figure subplots.
for examples, check out these figures/examples:
1. source code of complex layout:
http://rgraphics.limnology.wisc.edu/rmargins_layout.php
 (the associated graph it produces is here:
http://rgraphics.limnology.wisc.edu/images/layouts/rmargins_layout_thumb.png)
2. a tutorial on complex layouts with this command:
http://www.statmethods.net/advgraphs/layout.html
 in particular, see:
http://www.statmethods.net/advgraphs/images/layout3a.png where a
complex layout which is currently not possible with "subplot" is made.
a command like R's layout would be a tremendously helpful addition to
matplotlib, in my opinion. it will prevent the need for annoying
manual "postprocessing" of figures into these layouts using tools like
Illustrator, since these figures could be generated programmatically
instead, which much more precision.
as far as i know, this cannot be done in matplotlib right now, without
plotting your own axes (using some combination of axes grid toolkit
and raw axes plotting.)
if anyone out there has written some kind of wrappers that do
something like the "layout" command, i would love to know about it. if
it's still in testing and not part of the current matplotlib, i'd be
more than happy to beta test this for anyone and try it on many
examples.
thanks very much for your help.

Showing 6 results of 6

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 によって変換されたページ (->オリジナル) /