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



Showing 7 results of 7

From: Bonnie D. <bon...@bi...> - 2010年03月06日 23:38:29
Attachments: test_tkinter1.py
hello,
I am working in Python with TkAgg. I have several plots that I would 
like to display on a single figure. The problem is, when I set the 
figure size to 12in wide, 6in high (which is perfect for my laptop) the 
plots get scrunched up. If I resize the window in which they're 
displayed then the plots scrunch up even further. So it appears to me 
that the figure size is tied to the window size.
I would like to set the size of the initial window in which the plots 
appear and then fix the size of the canvas? frame? figure? (not sure 
what I need to fix). I have created a scrollbar on the window to permit 
scrolling up and down.
I have attached the Navigation Toolbar to the bottom of the window, 
which is where I would like it to stay. So, the plots should scroll up 
and down with the toolbar fixed.
My small sample program is attached.
I am using Tk (as opposed to another GUI) as I am generating these plots 
from data in SimPy and am using SimGUI to control the model execution 
and plotting.
I would greatly appreciate any help!
Regards,
Bonnie Douglas
From: Friedrich R. <fri...@gm...> - 2010年03月06日 23:28:39
David Goldsmith:
> Ah, ok, not right now (perhaps later): for the purpose of adding your code to the numpy bug ticket, I think it's best if I use something a little more ubiquitous. ;-) But it looks useful, so I'll probably grab it and try it out myself; is it pure python, i.e., should I be able to just put it in a folder containing an init file in site-packages and then it should "just work"?
Yeah, simply have a look at diagram.py
And yes, it should work out-of-the-box. The init file should be
already included. Simply put it in a folder. It's tiny.
Everything needed should be:
import matplotlib.figure
fig = matplotlib.figure.Figure()
ax = fig.add_axes((0.2, 0.2, 0.6, 0.6))
ax.imshow(...)
And would you mind if I put my opinion about the not-a-numpy-issue
character on the numpy list too? I think it's a pure matplotlib
problem, in my opinion numpy is behaving well, although they told you
to fill in a ticket?
Friedrich
From: David G. <d_l...@ya...> - 2010年03月06日 20:13:16
--- On Sat, 3/6/10, Friedrich Romstedt <fri...@gm...> wrote:
> >> d1 is a diagram_cl.Diagram instance, holding a
> >
> > Sorry for being dense, but where do I get diagram_cl?
> 
> All you tried won't work, diagram_cl is not included with
> matplotlib,
> and as I think it never will. Please clone or
> download from
> http://github.com/friedrichromstedt/diagram_cl . See
> also
> http://sourceforge.net/mailarchive/forum.php?thread_name=4B8443E2.9000506%40gmail.com&forum_name=matplotlib-users
> . Do you need advice with installing the package? I
> have not provided
> an setup.py so far.
Ah, ok, not right now (perhaps later): for the purpose of adding your code to the numpy bug ticket, I think it's best if I use something a little more ubiquitous. ;-) But it looks useful, so I'll probably grab it and try it out myself; is it pure python, i.e., should I be able to just put it in a folder containing an init file in site-packages and then it should "just work"?
Thanks again,
DG
DG
> 
> Friedrich
> 
 
From: Friedrich R. <fri...@gm...> - 2010年03月06日 19:43:23
2010年3月6日 David Goldsmith <d_l...@ya...>:
> Yeah, my email client (yahoo!) showed your example submission email as being directly to me, not the list, so I assumed that you were sending it directly to me because you saw that I had cross-posted to the numpy list. Anyway, I'm returning this thread to this list, FWIW.
Yeah, my e-mail client (gmail) chooses for e-mail from the
matplotlib-users list as default recipient of the answer always the
sender (maybe a misconfiguration?). I have to click "Answer All", and
I sometimes fail to do so, and do not recognise.
>> d1 is a diagram_cl.Diagram instance, holding a
>
> Sorry for being dense, but where do I get diagram_cl?
All you tried won't work, diagram_cl is not included with matplotlib,
and as I think it never will. Please clone or download from
http://github.com/friedrichromstedt/diagram_cl . See also
http://sourceforge.net/mailarchive/forum.php?thread_name=4B8443E2.9000506%40gmail.com&forum_name=matplotlib-users
. Do you need advice with installing the package? I have not provided
an setup.py so far.
Friedrich
From: Jae-Joon L. <lee...@gm...> - 2010年03月06日 18:09:34
Try
 cb.orientation = "horizontal"
 cb.update_bruteforce(cb.mappable)
it seems to work okay.
However, note that "update_bruteforce" clears the axes then redraws.
So, if you added some artists in the colorbar axes by yourself
(although this is not likely), they will be lost.
Regards,
-JJ
On Thu, Mar 4, 2010 at 8:48 PM, Thomas Robitaille
<tho...@gm...> wrote:
> Hi,
>
> I would like to change the orientation of a colorbar once it has already been drawn. So for example if I create the colorbar with:
>
> cb = fig.colorbar(mappable=image, cax=cax, orientation='vertical')
>
> I would like to be able to do
>
> cb.set_orientation('horizontal')
>
> Is there a way to do this, since set_orientation does not exist?
>
> Thanks for any help,
>
> Thomas
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: David G. <d_l...@ya...> - 2010年03月06日 17:40:07
--- On Sat, 3/6/10, Friedrich Romstedt <fri...@gm...> wrote:
> Note, that this is private discussion now and no longer on
> the list
> (accidentally?). If you want to put it back on the
> list, please feel
> free to do so.
Yeah, my email client (yahoo!) showed your example submission email as being directly to me, not the list, so I assumed that you were sending it directly to me because you saw that I had cross-posted to the numpy list. Anyway, I'm returning this thread to this list, FWIW.
> d1 is a diagram_cl.Diagram instance, holding a
Sorry for being dense, but where do I get diagram_cl?
>>> from matplotlib import diagram_cl as dc
Traceback (most recent call last):
 File "<input>", line 1, in <module>
ImportError: cannot import name diagram_cl
and http://matplotlib.sourceforge.net/search.html?q=diagram_cl yields:
Search Results
Your search did not match any documents.
DG
> matplotlib.figure.Figure instance and an
> matplotlib.axes.Axes instance
> of that figure. I used it because I was too lazy to
> create them on my
> own.
> 
> fwiw, diagram_cl is used to plot single-axes
> diagrams. There are also
> accompanying Layer2D (f(x) plots) and Layer3D
> (xy-colorplots) classes.
> They hide the internals of matplotlib completely and
> provide a pure
> data-oriented interface.
> 
> Friedrich
>
 
From: Eric F. <ef...@ha...> - 2010年03月06日 00:09:02
David Arnold wrote:
> All,
> 
> In one post from John Hunter, I heard the word "traits", which I assume is from the enthought distribution.
> 
> Is there a move in matplotlib toward the "trait" technology taking place? How about for Python in general?
> 
No to both, as far as I know. Every now and then the question of using 
traits in mpl is raised, and some trials have been done, but to date it 
has not caught on.
Eric
> Thanks.
> 
> David.

Showing 7 results of 7

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