SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S





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






Showing 3 results of 3

From: Stefan K. <pon...@ya...> - 2004年10月06日 17:37:56
When I run the script below, the range tuple is 
[0.0, 1.0, 0.0, 1.0]
 
but the data has an actual range more like [ 0, 6.8, 0, 1], the plot
looks correct, which is good, but the range tuple is wrong. It seems
to work fine with simple data examples but breaks with this data..
This is with Matplotlib v0.54.2
thanks,
S
#!/usr/bin/env python
import matplotlib
matplotlib.use( 'Agg' )
from matplotlib.matlab import *
x = [0.010331810701842871, 0.021066657441595242, 0.030855574358625324,
 0.040250726568746162, 0.050644838316290561, 0.06189415611955508,
 0.07125403603817515, 0.081941196069626396, 0.090571411794129267,
 0.10290686247291918, 0.11444331944589031, 0.1236257225395061,
 0.13473835780826723, 0.14381271569968049, 0.15290481341399415,
 0.16191929992110601, 0.17121682383712447, 0.18154558306766691,
 0.19166699839060464, 0.20041014147521002, 0.21840114667773247,
 0.22475368329468168, 0.23712042657177207, 0.24150561679187502,
 0.25777416395085717, 0.26370159485599637, 0.27115042730497135,
 0.28646842404763118, 0.2945605476107212, 0.3014844847904839,
 0.32090649437954005, 0.33474756188146532, 0.3463087158021369,
 0.35384920060301411, 0.36174596447259966, 0.37111350597671988,
 0.38500936142234621, 0.39310145975693639, 0.40090051408431981,
 0.41178548112097552, 0.42521787270909123, 0.43091391530572509,
 0.44614791389868291, 0.45494374609978966, 0.46186821556645236,
 0.47731590557971521, 0.48107399513220339, 0.4960609645338554,
 0.50293271758231672, 0.51908955994969641, 0.52754726056509504,
 0.538105663764743, 0.54695915774055104, 0.55445022367222696,
 0.56141617038929059, 0.57715732876336034, 0.58331953613820509,
 0.59203627993390995, 0.61018141394423642, 0.62628626881841487,
 0.63192539107874746, 0.6458016862544731, 0.65418149983636986,
 0.66065035611712197, 0.67079601269616063, 0.69003927324831349,
 0.70370643441733494, 0.71145337333441738, 0.72891863943192814,
 0.73620657868200012, 0.7416812708183288, 0.7543094129509258,
 0.76333622772703824, 0.77279502708216075, 0.78113840195825734,
 0.79518542174128759, 0.80283072754516693, 0.81348359069451792,
 0.82483196143668502, 0.83317823230638111, 0.84262635287300347,
 0.85060271704979107, 0.86622649392165829, 0.87378445858363607,
 0.88564073099481444, 0.89462710396172573, 0.90198905417679853,
 0.91225691885603977, 0.92314275233649545, 0.93022796091666171,
 0.94117604421861889, 0.95082199713874538, 0.96289363701352881,
 0.97353750955077867, 0.98050771299924244, 0.99071041335468191,
 1.0]
y = [
 6.8988430562808141, 6.0199122670123426, 5.4877276439939475,
 5.1709425981970805, 4.987254825650786, 4.7417327487085501,
 4.4978934463413314, 4.3250286563667935, 4.2007265350751535,
 4.0541464163597736, 3.9189273603700538, 3.8235472853454988,
 3.7164102779555512, 3.6445717916889664, 3.5480676732338021,
 3.4444786019802529, 3.3625904441222376, 3.2806471950213569,
 3.2011340640076367, 3.1510030907701263, 3.019839474428009,
 2.9822021628354816, 2.9059803156387574, 2.8856395987093051,
 2.7921865811397399, 2.7589612680359936, 2.7174335309498603,
 2.6324831804685527, 2.5900376295500123, 2.5597848772179619,
 2.4655519919224202, 2.4080342023330061, 2.357560958250656,
 2.3276036195316627, 2.2941290050680068, 2.2529601292610253,
 2.2040744982244793, 2.1752627057435507, 2.1490323132220679,
 2.1143606533996637, 2.0692410113398481, 2.0505144863177676,
 2.0051930431043892, 1.9783735967494613, 1.9567455423743982,
 1.9117142836414112, 1.9015246184270749, 1.8570312324545144,
 1.8373286819197756, 1.7930616898324281, 1.7698772818526114,
 1.7416837457846306, 1.7191776401533563, 1.6985358308203811,
 1.6826034910369574, 1.6460157936833077, 1.6312087148596748,
 1.6120311128551963, 1.5717381767713174, 1.5393408540494826,
 1.5277823839983642, 1.4990255085133, 1.482078897585539,
 1.4703127379153567, 1.4503193917059973, 1.414718900022627,
 1.3902791696828953, 1.3773840753041227, 1.3485627887870608,
 1.3368879344126419, 1.3280498048998697, 1.3087099772217325,
 1.2943614279230125, 1.2807173903668139, 1.2682285769430715,
 1.2471152061484074, 1.2357065246849019, 1.2212562025804223,
 1.2059396101922433, 1.19434578885053, 1.1818376806548032,
 1.1710070331197149, 1.150850866654737, 1.141314474700714,
 1.1268033459945574, 1.1160062947810399, 1.1072603628571882,
 1.0952161339218929, 1.082587112669787, 1.0743414397576259,
 1.0620959689501084, 1.0514270580154892, 1.0383865727621933,
 1.0270434782193152, 1.0198775771453545, 1.009374502605529,
 1.0]
plot(x, y )
print axis() # why does this print [0.0, 1.0, 0.0, 1.0]?
savefig('simple_plot')
		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
From: Roberto De A. <ral...@gm...> - 2004年10月06日 08:34:55
On 2004年10月05日 20:14:44 -0500, John Hunter
<jdh...@ac...> wrote:
> The work in progress claim is a bit overstated. If you search the
> user's mailing list for polar, you'll see some code that was posted
> that essentially provides a poorman's polar plot. It makes plot that
> roughly do the right things vis-a-vis polar, but to "do it right (tm)"
> you'll need to implement a polar axis class, derived from the Axis
> base class (eg use patch.Circle to draw the theta axis). A polar
> transform class is defined in the _transforms module. Among the other
> changes, you'll want to set the default transform for polar axes.
Yes, my idea is to do it "properly", but I'm still getting myself
familiar with the code.
My original plan was to create a class PolarSubplot(PolarAxes), in the
same way that Subplot derives from Axes. I would then create the
PolarAxes class, implementing all the necessary methods, like plot(),
imshow(), etc. That's why I mentioned imshow() and pcolor(), because
my idea is to implement not only line plots, but specially pseudo
color plots on the polar axes.
After looking at the code for transforms, though, I'm not sure if all
this is really necessary. It seems to me that I can define a polar
transform, and simply reuse all the methods already defined in the
Axes class to the all the work, is that right? I saw the PolarXY
transform in the _transforms module, but it seems to be just a stub
(matplotlib 0.63.0) -- it has no defined methods.
> If you decide you want to jump in, let me know and I'll write a more
> long winded email about what I think is involved, bearing in mind that
> I haven't actually implemented any of this code so my comments should
> be taken with a grain of salt.
A few more details would be great. As I said, I'm still looking at the
code and getting used to how things work. I would be very happy to
contribute with matplotlib, it's a fantastic work and something that
was missing in the Python world for quite a long time.
Roberto
-- 
Roberto De Almeida <ro...@de...>
this email is: [ ] bloggable [ ] ask first [ ] private [x] nonsense
From: John H. <jdh...@ac...> - 2004年10月06日 02:03:55
>>>>> "Roberto" == Roberto De Almeida <ral...@gm...> writes:
 Roberto> Hi, I was wondering about the status of polar plots --
 Roberto> the website says only "work underway" If no one is
 Roberto> working on this, I'm interested on implement polar plots
 Roberto> (and also imshow, pcolor, etc).
The work in progress claim is a bit overstated. If you search the
user's mailing list for polar, you'll see some code that was posted
that essentially provides a poorman's polar plot. It makes plot that
roughly do the right things vis-a-vis polar, but to "do it right (tm)"
you'll need to implement a polar axis class, derived from the Axis
base class (eg use patch.Circle to draw the theta axis). A polar
transform class is defined in the _transforms module. Among the other
changes, you'll want to set the default transform for polar axes.
If you decide you want to jump in, let me know and I'll write a more
long winded email about what I think is involved, bearing in mind that
I haven't actually implemented any of this code so my comments should
be taken with a grain of salt. 
I'm not clear about the context of your mention of imshow and pcolor;
could you elaborate?
JDH

Showing 3 results of 3

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