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

Showing 10 results of 10

From: Zoho V. <zoh...@gm...> - 2008年05月01日 22:07:34
On 2008年5月01日 22:00:33 +0000, Zoho Vignochi wrote:
> Hello:
> 
> I have a script in which I have been using plot to plot numerous lines
> on the same graph. I recently wanted to see how Line Collections work so
> I tried porting it over. Everything successful except I can't seem to
> get each line to be a different color. Here is the relevant section:
> 
> # Make a list of colors cycling through the rgbcmyk series.
> 	colors = [colorConverter.to_rgba(c) for c in
> ('r','g','b','c','y','m','k')]
> 	
> 	fig = plt.figure()
> 	ax = fig.add_subplot(1,1,1)
> 	lines = collections.LineCollection([zip(L_range, item) for item
> in a_steady])
> 	lines.set_array(L_range)
> 	lines.set_color(colors)
> 	ax.add_collection(lines, autolim=True)
> 	
> However every line is blue. Any ideas?
> 
 I should mention my import lines:
import numpy as np
from numpy import sum, zeros, less, where
import scipy as sp
import matplotlib.pyplot as plt
from matplotlib import collections
from matplotlib.colors import colorConverter
From: Zoho V. <zoh...@gm...> - 2008年05月01日 22:00:48
Hello:
I have a script in which I have been using plot to plot numerous lines on 
the same graph. I recently wanted to see how Line Collections work so I 
tried porting it over. Everything successful except I can't seem to get 
each line to be a different color. Here is the relevant section:
# Make a list of colors cycling through the rgbcmyk series.
	colors = [colorConverter.to_rgba(c) for c in 
('r','g','b','c','y','m','k')]
	
	fig = plt.figure()
	ax = fig.add_subplot(1,1,1)
	lines = collections.LineCollection([zip(L_range, item) for item 
in a_steady])
	lines.set_array(L_range)
	lines.set_color(colors)
	ax.add_collection(lines, autolim=True)
	
However every line is blue. Any ideas?
From: Michael H. <mh...@us...> - 2008年05月01日 21:36:54
Contents of matplotlib.__version__"
'0.98pre'
My Matplotlib is from the SciPy SuperPack for Mac OS X from http://macinscience.org/?page_id=6
On May 1, 2008, at 3:32 PM, Michael Hearne wrote:
> I'm noticing strange behavior with the legend function when used in 
> combination with matplotlib. If I do the following:
>
> import datetime
> from pylab import *
> date1 = datetime.date( 1952, 1, 1 )
> date2 = datetime.date( 2004, 4, 12 )
> delta = datetime.timedelta(days=100)
> dates = drange(date1, date2, delta)
> s1 = rand(len(dates))
> plot_date(dates, s1,'r.')
> hold(True)
> s2 = rand(len(dates))
> plot_date(dates, s2,'bo')
> legend(('s1','s2'))
>
> The resulting legend shows the symbols twice (two little red dots 
> and two blue ones). Does anyone else get this, and if so, do you 
> know what the problem is?
>
> --Mike
>
>
>
> ------------------------------------------------------
> Michael Hearne
> mh...@us...
> (303) 273-8620
> USGS National Earthquake Information Center
> 1711 Illinois St. Golden CO 80401
> Senior Software Engineer
> Synergetics, Inc.
> ------------------------------------------------------
>
>
------------------------------------------------------
Michael Hearne
mh...@us...
(303) 273-8620
USGS National Earthquake Information Center
1711 Illinois St. Golden CO 80401
Senior Software Engineer
Synergetics, Inc.
------------------------------------------------------
From: Michael H. <mh...@us...> - 2008年05月01日 21:32:57
I'm noticing strange behavior with the legend function when used in 
combination with matplotlib. If I do the following:
import datetime
from pylab import *
date1 = datetime.date( 1952, 1, 1 )
date2 = datetime.date( 2004, 4, 12 )
delta = datetime.timedelta(days=100)
dates = drange(date1, date2, delta)
s1 = rand(len(dates))
plot_date(dates, s1,'r.')
hold(True)
s2 = rand(len(dates))
plot_date(dates, s2,'bo')
legend(('s1','s2'))
The resulting legend shows the symbols twice (two little red dots and 
two blue ones). Does anyone else get this, and if so, do you know 
what the problem is?
--Mike
------------------------------------------------------
Michael Hearne
mh...@us...
(303) 273-8620
USGS National Earthquake Information Center
1711 Illinois St. Golden CO 80401
Senior Software Engineer
Synergetics, Inc.
------------------------------------------------------
From: Georg H. <gr...@mu...> - 2008年05月01日 20:34:00
Many thanks !
LG
Georg
Eric Firing schrieb:
> Georg,
> 
> See errorbar_demo.py in the examples directory. The last example sets 
> the y-axis to a log scale; it should also work if you use the same 
> method to set both scales to log, so it would be like this:
> 
> ax = subplot(111)
> ax.set_xscale('log')
> ax.set_yscale('log')
> errorbar(t, s+2, e, f, fmt='o')
> 
> You may need to be careful to keep all values, including errorbar 
> limits, positive.
> 
> Eric
> 
> 
> Georg Holzmann wrote:
>> Hallo!
>>
>> Is there any possibility to use a logarithmic errorbar plot ?
>> I want to draw my values as with loglog, but additionally add the 
>> variance to the data points as with yerr in errorbar.
>>
>> Or is it maybe better to add the variance manually in a loglog plot - 
>> is this possible ?
>>
>> Thanks for any hints,
>> LG
>> Georg
>>
>> PS:
>> I also found this unanswered post about the same topic: 
>> http://www.nabble.com/semilogx-and-errorbar-tt5182429.html#a5182429
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
>> Don't miss this year's exciting event. There's still time to save 
>> 100ドル. Use priority code J8TL2D2. 
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone 
>>
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
From: Michael D. <md...@st...> - 2008年05月01日 18:25:09
Thanks. Fixed on trunk (r5102) and 0.91.x maintenance branch (r5101).
Cheers,
Mike
Xavier Gnata wrote:
> Hi,
>
> Using gcc-4.3 I get this error :
>
> tconv/truetype.h:50: error: ISO C++ forbids declaration of ‘FILE’ with 
> no type
>
> #include <stdio.h> is missing.
>
> Xavier
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save 100ドル. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Xavier G. <xav...@gm...> - 2008年05月01日 18:18:03
Hi,
Using gcc-4.3 I get this error :
tconv/truetype.h:50: error: ISO C++ forbids declaration of ‘FILE’ with 
no type
#include <stdio.h> is missing.
Xavier
From: Eric F. <ef...@ha...> - 2008年05月01日 17:32:20
Georg,
See errorbar_demo.py in the examples directory. The last example sets 
the y-axis to a log scale; it should also work if you use the same 
method to set both scales to log, so it would be like this:
ax = subplot(111)
ax.set_xscale('log')
ax.set_yscale('log')
errorbar(t, s+2, e, f, fmt='o')
You may need to be careful to keep all values, including errorbar 
limits, positive.
Eric
Georg Holzmann wrote:
> Hallo!
> 
> Is there any possibility to use a logarithmic errorbar plot ?
> I want to draw my values as with loglog, but additionally add the 
> variance to the data points as with yerr in errorbar.
> 
> Or is it maybe better to add the variance manually in a loglog plot - is 
> this possible ?
> 
> Thanks for any hints,
> LG
> Georg
> 
> PS:
> I also found this unanswered post about the same topic: 
> http://www.nabble.com/semilogx-and-errorbar-tt5182429.html#a5182429
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save 100ドル. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Georg H. <gr...@mu...> - 2008年05月01日 14:51:05
Hallo!
Is there any possibility to use a logarithmic errorbar plot ?
I want to draw my values as with loglog, but additionally add the 
variance to the data points as with yerr in errorbar.
Or is it maybe better to add the variance manually in a loglog plot - is 
this possible ?
Thanks for any hints,
LG
Georg
PS:
I also found this unanswered post about the same topic: 
http://www.nabble.com/semilogx-and-errorbar-tt5182429.html#a5182429
From: Darren D. <dar...@co...> - 2008年05月01日 14:42:48
Hi Glenn,
On Wednesday 30 April 2008 04:32:51 am G Jones wrote:
> Hello,
> I have decided to switch to the QtAgg backend because the Designer
> software is very appealing. I succeeded in adding a custom widget
> representing the FigureCanvasQTAgg, but when I compile the ui file, I
> see that it tries to instantiate it as FigureCanvasQTAgg(Parent) where
> Parent is the parent widget, which seems to be the standard format for
> instantiating widgets. However, FigureCanvasQTAgg expects a figure as
> an argument.
> I have seen this tutorial:
> http://www.scipy.org/Cookbook/Matplotlib/Qt_with_IPython_and_Designer
> which suggests making a MatplotlibWidget to wrap the Canvas and set
> everything up including the parent. I have written a version of this
> for Qt4, but this seems like something that should be included in the
> Qt4 backends. Any plans on adding this? I'd be happy to contribute.
> Attached is my initial version.
I'm sorry I didn't respond before now, I've been swamped at work.
I agree that this would be a useful addition to matplotlib. I had been 
thinking myself about whether to invest some time to develop some standard 
widgets. This is a good place to start, I'll commit a modified version 
sometime in the next week (it should respect rcParams, for example), but I'll 
need some instructions on how to make Designer use the plugin. Would you 
please consider writing a brief instruction that could be included in the 
backend_qt4agg source?
Thanks for the submission,
Darren

Showing 10 results of 10

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