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


Showing results of 284

<< < 1 .. 10 11 12 (Page 12 of 12)
From: Werner F. B. <wer...@fr...> - 2007年05月03日 10:57:35
Hi Uwe,
Uwe Schmitt wrote:
> Hi,
>
> I'm using
>
> from matplotlib.backends.backend_wx import FigureCanvasWx
>
> for plotting data. It works fine, but the font used on
> Windows XP is not really pretty. I would like to use another
> font family and another size.
I just recently discovered this for a Vista legend problem I had (they 
were to big).
from matplotlib.font_manager import FontProperties
 self.figure.legend((statsLinesP + statsLinesC), (statsTextsP + 
statsTextsC),
 loc=self.legendPos, prop=FontProperties(size='smaller'))
Werner
From: Uwe S. <usc...@mi...> - 2007年05月03日 10:46:03
Attachments: uschmitt.vcf
Hi,
I'm using
 from matplotlib.backends.backend_wx import FigureCanvasWx
for plotting data. It works fine, but the font used on
Windows XP is not really pretty. I would like to use another
font family and another size.
How can I achieve this ?
And another question: I'm using add_subplots mehtod for plotting,
and I would like to increase the vertical space between the
different subplots. Any hint how to do this ?
Greetings, Uwe
From: Mark B. <ma...@gm...> - 2007年05月03日 08:25:30
A quick fix (since you need an exam, I guess) would be to make the label
with the 'text' command and put it where you want it.
I am interested in an elegant fix,
Mark
On 5/2/07, mat...@li...
>
> Date: Wed, 2 May 2007 11:39:03 -0500
> From: "Ryan Krauss" <rya...@gm...>
> Subject: [Matplotlib-users] creating a blank graph with room for hand
> written tick labels.
> To: matplotlib-users <mat...@li...>
> Message-ID:
> <c5b...@ma...>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I am writing a final exam and I want my students to sketch a graph of
> something and label the plot themselves. So, I need to create an axis
> with x and y labels, but with no tick marks. This I can do, but
> creating blank tick marks seems to get rid of the space where the
> students would write in their own tick marks. Playing with
> xtick.major.pad doesn't seem to help. What should I be doing? This
> is my code:
>
> figure(20)
> clf()
> xlim([0,0.1])
> ylim([-10,10])
> xlabel('Time (sec)')
>
> yticks(arange(-10,11,2))#,['']*10)
>
> ylabel(r'$v_{out}(t)$')
> grid(True)
> fname='blank_time_plot.eps'
> outdir='figs'
>
> ylim([-5,5])
> yticks(arange(-5,5.2),['']*10)
> xticks(arange(1,10),['']*10)
>
> and the result is attached (png).
>
> Thanks,
>
> Ryan
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: blank.png
> Type: image/png
> Size: 19059 bytes
> Desc: not available
>
> ------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
>
> ------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> End of Matplotlib-users Digest, Vol 12, Issue 1
> ***********************************************
>
From: Andrew S. <str...@as...> - 2007年05月02日 23:17:41
See pylab.figtext()
David D Clark wrote:
> Hello,
>
> I have a figure with four subplots (2x2). I would like to put a title
> centered over the top row. How do I do this?
>
> Thanks,
> Dave
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: David D C. <dd...@la...> - 2007年05月02日 22:31:14
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I have a figure with four subplots (2x2). I would like to put a title
centered over the top row. How do I do this?
Thanks,
Dave
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGOREuNu7GcwGNZSMRApPnAJ4/I8N5uAHzI+/fFWuMtvmQ8OF9XQCdFXvL
0QF/2m3HgyxkGmhGlPtnzKM=
=MYiT
-----END PGP SIGNATURE-----
"Ryan Krauss" <rya...@gm...> writes:
> I am writing a final exam and I want my students to sketch a graph of
> something and label the plot themselves. So, I need to create an axis
> with x and y labels, but with no tick marks. This I can do, but
> creating blank tick marks seems to get rid of the space where the
> students would write in their own tick marks. 
A quick hack would be to make non-blank tick marks but cause them to
be invisible in another way, e.g. by setting alpha=0 or color='w':
yticks(arange(-5,5.2),['0']*10,alpha=0)
xticks(arange(1,10),['0']*10,alpha=0)
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Ryan K. <rya...@gm...> - 2007年05月02日 16:39:08
Attachments: blank.png
I am writing a final exam and I want my students to sketch a graph of
something and label the plot themselves. So, I need to create an axis
with x and y labels, but with no tick marks. This I can do, but
creating blank tick marks seems to get rid of the space where the
students would write in their own tick marks. Playing with
xtick.major.pad doesn't seem to help. What should I be doing? This
is my code:
figure(20)
clf()
xlim([0,0.1])
ylim([-10,10])
xlabel('Time (sec)')
yticks(arange(-10,11,2))#,['']*10)
ylabel(r'$v_{out}(t)$')
grid(True)
fname='blank_time_plot.eps'
outdir='figs'
ylim([-5,5])
yticks(arange(-5,5.2),['']*10)
xticks(arange(1,10),['']*10)
and the result is attached (png).
Thanks,
Ryan
From: Tim H. <hi...@re...> - 2007年05月01日 18:10:17
Hello,
My company, Resonon, is releasing our free (as in beer) software 
package, Spectronon. Spectronon is written in python and utilizes 
matplotlib, numpy, PIL, and scipy. Spectronon's main purpose is 
analyzing hyperspectral data (images with many more bands of color than 
the traditional 3: red, green, blue). It can also be useful for more 
traditional image processing. Perhaps of most interest here, it is a 
quick way to get access to a command line with a bunch of useful 
libraries, plotting, and image viewing. It's packaged as a basic exe 
installer. There is also a fairly simple plug-in architecture for 
extending some of Spectronon's behavior. 
 As the main developer, I am very thankful for all the good work that 
gets put in to all these underlying libraries, and I hope that in 
getting this software out for free, it can in turn support more academic 
and research applications of python and its libraries. The release will 
also help me expose bugs, hopefully get more people interested in 
writing plug-ins for Spectronon, and help me learn other ways to improve 
the code base. While the source code is not presently open, the API is 
open in order to support writing plug-ins.
Here are some screenshots:
http://www.spectronon.com/wiki/index.php?title=Screenshots
I recommend users on this list go directly to the developer docs here:
http://www.spectronon.com/wiki/index.php?title=Setup_a_Simple_Development_Environment 
as this tutorial will step you through the aspects of Spectronon of most 
probable interest.
Links to the download, support forums, and more docs are available at 
http://www.spectronon.com
Thanks very much. I hope it's a fun ap for folks, and I greatly 
appreciate any questions, feedback, or comments as we begin to get this 
project off the ground.
Tim
From: Scott S. <sin...@uk...> - 2007年05月01日 05:46:20
I see. 
 
I only checked that the code in hist() hadn't changed. I guess it pays
to be thorough. Hope this didn't waste too much time.
 
Cheers,
Scott
>>> Eric Firing <ef...@ha...> 4/30/2007 20:02 >>>
Scott,
In svn, barh does accept the 'log' kwarg via **kwargs, and your example
works correctly. Here is the relevant CHANGELOG entry, after 0.90 was
released:
2007年03月03日 Change barh to take a kwargs dict and pass it to bar.
 Fixes sf bug #1669506.
I think it was just a matter of changing the barh signature to:
 def barh(self, bottom, width, height=0.8, left=None, **kwargs):
but I haven't looked back at the svn records to check that.
Eric
Scott Sinclair wrote:
> Hi,
> 
> The following code fails for me with matplotlib-0.90.0 --
> 
> ---------------------------------------------------
> import pylab as pl
> 
> x = pl.randn(1000)
> 
> pl.hist(x, orientation='horizontal')
> 
> pl.show()
> ---------------------------------------------------
> 
> This is because Axes.barh() [called by Axes.hist() in axes.py]
doesn't 
> accept the keyword argument 'log'. The attached patch fixes the
problem 
> for my purposes (linear scaling of the axes) but obviously fails to 
> scale the bin count axis correctly if hist() is called with log=True
> i.e. pl.hist(x, orientation='horizontal', log=True).
> 
> It appears that this is still the case in the latest svn version of
axes.py.
> 
> Cheers,
> Scott
> 
> 
> Please find our Email Disclaimer here-->: _ 
> http://www.ukzn.ac.za/disclaimer
<http://www.ukzn.ac.za/disclaimer/>_
> 
> 
>
------------------------------------------------------------------------
> 
> --- axes.py2007-01-22 18:57:58.000000000 +0200
> +++ patched_axes.py2007-04-30 15:12:15.921875000 +0200
> @@ -4462,7 +4462,7 @@
> if width is None: width = 0.9*(bins[1]-bins[0])
> if orientation == 'horizontal':
> patches = self.barh(bins, n, height=width, left=bottom,
> - align=align, log=log)
> + align=align)
> elif orientation == 'vertical':
> patches = self.bar(bins, n, width=width, bottom=bottom,
> align=align, log=log)
> 
> 
>
------------------------------------------------------------------------
> 
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/ 
> 
> 
>
------------------------------------------------------------------------
> 
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li... 
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users 
Please find our Email Disclaimer here: http://www.ukzn.ac.za/disclaimer/
6 messages has been excluded from this view by a project administrator.

Showing results of 284

<< < 1 .. 10 11 12 (Page 12 of 12)
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 によって変換されたページ (->オリジナル) /