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

Showing 11 results of 11

From: KrishnaPribadi <Kri...@ha...> - 2010年04月15日 20:56:30
I just tried this method and it does work if you are using integers or whole
numbers. However, I am working with time on my x axis. So when I zoom too
close, floating point numbers are required... Is there any way to just turn
off the exponent number in the right corner and force the x tick labels to
be integers or floating point depending on how close one is zoomed?
David Simpson-3 wrote:
> 
> I also had some trouble with exponents in an axis, getting
> 0.0 to 3.0 on the axis, with +1.998e3. I wanted the years
> 1998 to 2001 instead. I solved this using the following code
> (with the solution bits commented out):
> 
> #!/usr/bin/env python
> from pylab import *
> # from matplotlib.ticker import FormatStrFormatter
> 
> x = array([ 1998, 1999, 2000, 2001 ])
> y = array([ 2.3, 4.5, 2.6, 7.2 ])
> 
> # ax=subplot(111)
> plot(x,y)
> 
> ## Needed to get 2001, not 1+2e3:
> # majorFormatter=FormatStrFormatter('%d')
> # ax.xaxis.set_major_formatter(majorFormatter)
> # show()
> 
> 
> 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
> 
> 
-----
Krishna Adrianto Pribadi
Test Engineer
Harley-Davidson Motor Co.
Talladega Test Facility
Vehicle Test Stands
-- 
View this message in context: http://old.nabble.com/Re%3A-Forcing-full-value-on-axis-%28Dave-Simpson%29-tp10175415p28260517.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Friedrich R. <fri...@gm...> - 2010年04月15日 19:56:47
2010年4月14日 Andreas Hilboll <li...@hi...>:
> So my question is: What do I need to do so that the colorbar actually has
> the
> range as specified by my colorNorm?
We had a beautiful discussion about this recently under "Making a
data-driven colormap", maybe this helps.
Friedrich
From: David Ho <it...@uc...> - 2010年04月15日 19:28:07
Hi all!
I have a quick newbie question.
matplotlib's specgram() by default plots a spectrogram with a linear y-axis
(frequency).
However, for many applications, it's better to look at a log-frequency
spectrogram.
Is there an easy way to plot a spectrogram using a logarithmic frequency
axis?
Thanks for your help!
--David Ho
From: Alan G I. <ala...@gm...> - 2010年04月15日 15:12:04
From: Martin B. <mar...@go...> - 2010年04月15日 14:55:05
Hello Matplotlib-Community,
I'm quite sure that I've seen a figure containing a multicolered graph
somewhere, maybe on stackoverflow or at scipy.org.
Unfortunately, I'm not able to find it anymore.
Anyone knows the link?
Anyone knows howto?
Thanks very much indeed,
greetings,
Martin
From: Antony L. <ann...@gm...> - 2010年04月15日 09:57:52
Hello,
I'd like to know if there's some way of copying a LineCollection or a
ContourSet (or any other Artist, actually) from one figure to another.
More precisely, I have to figures using identical axes (one being a
grayscale image and the other a thresholded version of the image) ; I have
written a script to tag parts of the thresholded image (which gives me
ContourSets), and I want to copy these to the grayscale image.
Any help would be greatly appreciated.
Thanks in advance,
Antony
From: Eric F. <ef...@ha...> - 2010年04月15日 07:19:00
Thomas Robitaille wrote:
> Hi,
> 
> Last year, I submitted a bug report regarding the fact that PatchCollection's match_original argument does not work properly, in a pretty simple script:
> 
> https://sourceforge.net/tracker/?func=detail&aid=2881485&group_id=80706&atid=560720
> 
> I came across the problem again several times recently, even with the svn version of matplotlib, and other people have also mentioned the issue to me. I just wanted to bring up this issue again, in case it can easily be fixed.
> 
> Thanks,
> 
> Thomas
My first fix was flawed; svn r8231 looks better.
Eric
From: Eric F. <ef...@ha...> - 2010年04月15日 07:11:17
Thomas Robitaille wrote:
> Hi,
> 
> Last year, I submitted a bug report regarding the fact that PatchCollection's match_original argument does not work properly, in a pretty simple script:
> 
> https://sourceforge.net/tracker/?func=detail&aid=2881485&group_id=80706&atid=560720
> 
> I came across the problem again several times recently, even with the svn version of matplotlib, and other people have also mentioned the issue to me. I just wanted to bring up this issue again, in case it can easily be fixed.
> 
> Thanks,
> 
> Thomas
Thomas,
Thanks for the reminder. I think I have fixed the problem.
Eric
From: Peter B. <bu...@gm...> - 2010年04月15日 04:43:08
On Thu, Apr 15, 2010 at 5:16 AM, Peter Butterworth <bu...@gm...> wrote:
> matlab colors seem to follow html :
> http://www.mathworks.com/access/helpdesk/help/techdoc/ref/colorspec.html
for c, m, y
but not for green, where matplotlib does follow html ...
From: Thomas R. <tho...@gm...> - 2010年04月15日 04:32:35
Hi,
Last year, I submitted a bug report regarding the fact that PatchCollection's match_original argument does not work properly, in a pretty simple script:
https://sourceforge.net/tracker/?func=detail&aid=2881485&group_id=80706&atid=560720
I came across the problem again several times recently, even with the svn version of matplotlib, and other people have also mentioned the issue to me. I just wanted to bring up this issue again, in case it can easily be fixed.
Thanks,
Thomas
From: Peter B. <bu...@gm...> - 2010年04月15日 03:17:06
matlab colors seem to follow html :
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/colorspec.html
I would agree that "yellow" is not very readable at all. Could
possibly the short-hand colors be made user configurable in
.matplotlibrc to suit individual taste ?
In any case, this issue needs to be mentioned in the documentation.
On Wed, Apr 14, 2010 at 9:58 PM, Eric Firing <ef...@ha...> wrote:
> John Hunter wrote:
>>
>> On Wed, Apr 14, 2010 at 2:14 PM, Jae-Joon Lee <lee...@gm...>
>> wrote:
>>
>>> John, the relevant code to define the "colors" attribute seems to be
>>> written by you. Maybe this is some matlab convention? Can you comment
>>> on this?
>>
>> The original color letters did come from matlab, and some of the color
>> RGB choices, like the background for the subplot gray, I got using a
>> color picker on my screen for maximum compatibility, but I do not
>> recall if that was the case for 'm', 'c' and 'y'. Most likely these
>> were the rgb values of the matlab colors.
>>
>> The html colors were submitted later by another user, and apparently
>> we never checked for consistency. I think this is a wart, and I
>> don't feel strongly about keeping it or changing it for consistency in
>> the trunk ahead of 1.0 (it should remain as is on the branch). If we
>> change it on the trunk, we should change the single letter codes to
>> correspond to the html full color name standards, rather than the
>> other way around.
>
> I would be cautious about making this change. At least on my laptop screen,
> with the default white axes background, the single-letter colors show up
> better than the html versions. It makes sense to me for the single-letter
> colors to be chosen for good visibility and contrast in actual use, not for
> consistency with the html names. In fact, I see no good argument for
> consistency in this case.
>
> Eric
>
>
>>
>> JDH
-- 
thanks,
peter butterworth

Showing 11 results of 11

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