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

Showing 9 results of 9

> Have you tried:
> ax1.scatter(sanjose_y,sanjose_x,color=(0.9,0.9,0.0),label='SanJose',alpha=0.1)
Yes, the above worked, thank you
--
Andrew 'Boo' Davie
From: Jouni K. S. <jk...@ik...> - 2009年10月26日 18:52:01
Eero Nevalainen <eer...@in...> writes:
> I'm plotting GPS scatter and I have a problem with the plotting library
> https://sourceforge.net/tracker/?func=detail&aid=2886541&group_id=80706&atid=560720
> Doing a scatterplot with for example scatter(x,y, s=1, c='r') makes black
> dots instead of red ones. 
It's because of the black edgecolor. Try
scatter(x,y,s=1,c='r',edgecolor='None')
to disable drawing the edges.
> Do you devs have an IRC channel? I'd like to talk interactively.
Not that I know of.
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Eero N. <eer...@in...> - 2009年10月26日 18:30:19
Hi,
I'm plotting GPS scatter and I have a problem with the plotting library
https://sourceforge.net/tracker/?func=detail&aid=2886541&group_id=80706&atid=560720
I'm comparing different GPS'es and need the colors to separate them. You
can check the current output in
http://users.tkk.fi/~ejnevala/scatterplot.png
Do you devs have an IRC channel? I'd like to talk interactively.
I pledge to donate 5 bucks to matplotlib just for triaging the bug.
-- 
Eero Nevalainen
System Architect
Indagon Ltd.
From: Michael D. <md...@st...> - 2009年10月26日 17:43:31
tcb wrote:
> Hi Mike,
>
> I'm not sure about the textpath functionality. Most of the 'easy'
> marker types have been specified already (triangles, squares etc). Are
> the latex symbols defined somewhere that you could easily extract a
> path description of them, and then pass that to the textpath code you
> have? This would be perfect, since you could then apply the properties
> changes already there (like color, size, linewidth etc), and you
> wouldnt necessarily need latex to render the markers.
>
> Even if you could manage to make a path description for (all) the
> markers, they might not exactly correspond to the latex symbols which
> would be one of the main aims- for eg. using text.usetex with the pdf
> backend you could match the fonts in your graph to your latex document
> and it would all look very nice ;)
>
> I agree that the best approach would be to make a new marker style
> '$...$' and pass the string inside to whatever renders the math text.
>
> I hadn't consider making a patch myself- but perhaps I'll take a look
> and see if something can be done (any pointers on the use of the math
> text code would be appreciated...)- either way I will file an
> enhancement request to keep track of it.
> 
The functionality in textpath.py is able to turn any text (including 
math with the internal render and externally-rendered LaTeX) into a path 
on-the-fly. It should exactly match the rest of the text, as long as 
the usetex option is passed along correctly. Look at 
textpath.text_to_path.get_text_path:
 convert text *s* to path (a tuple of vertices and codes for 
matplotlib.math.Path).
 *prop*
 font property
 *s*
 text to be converted
 
 *usetex*
 If True, use matplotlib usetex mode.
 *ismath*
 If True, use mathtext parser. Effective only if usetex == False.
There's an example of its usage at the bottom of the same file.
It would be great if you wanted to look into this further. Let me know 
if I can provide any more pointers.
Mike
> thanks,
>
> tcb
>
>
>
> On Mon, Oct 26, 2009 at 1:03 PM, Michael Droettboom <md...@st...> wrote:
> 
>> That's a very interesting idea. I actually think that with the recent
>> textpath functionality that Jae-Joon added, we may be able to tie text and
>> markers together without too much pain. Then it can advantage of all the
>> performance optimizations in draw_markers. Each of the marker styles now
>> contains a function that draws a path for the marker and then passes that to
>> draw_marker. We could add one that draws an arbitrary text path, and then
>> passes that along. I propose that Line.set_marker supports a new marker
>> style "$...$" which would render whatever "..." is as math text.
>>
>> Were you offering to try to produce a patch yourself? Either way, it would
>> be great to file an enhancement request in the tracker so this idea doesn't
>> get lost. It's a good one.
>>
>> Mike
>>
>> tcb wrote:
>> 
>>> Hi,
>>>
>>> Is there some way to add support for latex symbols as markers?
>>>
>>> I think it would be an extension of the current methods for plotting
>>> markers- since I dont think all the color, edge, line style etc
>>> properties would be relevant (or even possible). However, it would
>>> allow arbitrary symbols (at least whatever latex can do) to be used,
>>> which would be really useful.
>>>
>>> The current marker set is fine for most simple plots- but when there
>>> are a few different symbols it quickly becomes tricky to find a set
>>> which can easily be distinguished from each other. The other problem
>>> is that when preparing a graph for publication, it is occasionally
>>> necessary to be able to refer to or quote the symbols in the caption
>>> or the main text- and latex symbols in the graphs would make this look
>>> a bit better.
>>>
>>> I've had a quick look at how the marker symbols are implemented, and
>>> it is my impression that it would be reasonably hard to implement a
>>> new symbol of choice. On the other hand, since I am already using
>>> latex to produce all the text in the graph, it seems it should be
>>> fairly straightforward (with some careful attention to the
>>> positioning...) to use the same text-drawing code which is used for
>>> the legend, axes labels etc, to put the markers on the plot.
>>>
>>> Is there any interest in this?
>>>
>>> thanks,
>>>
>>> tcb
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Matplotlib-devel mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>>
>>> 
>> --
>> Michael Droettboom
>> Science Software Branch
>> Operations and Engineering Division
>> Space Telescope Science Institute
>> Operated by AURA for NASA
>>
>>
>> 
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: tcb <the...@gm...> - 2009年10月26日 17:33:39
Hi Mike,
I'm not sure about the textpath functionality. Most of the 'easy'
marker types have been specified already (triangles, squares etc). Are
the latex symbols defined somewhere that you could easily extract a
path description of them, and then pass that to the textpath code you
have? This would be perfect, since you could then apply the properties
changes already there (like color, size, linewidth etc), and you
wouldnt necessarily need latex to render the markers.
Even if you could manage to make a path description for (all) the
markers, they might not exactly correspond to the latex symbols which
would be one of the main aims- for eg. using text.usetex with the pdf
backend you could match the fonts in your graph to your latex document
and it would all look very nice ;)
I agree that the best approach would be to make a new marker style
'$...$' and pass the string inside to whatever renders the math text.
I hadn't consider making a patch myself- but perhaps I'll take a look
and see if something can be done (any pointers on the use of the math
text code would be appreciated...)- either way I will file an
enhancement request to keep track of it.
thanks,
tcb
On Mon, Oct 26, 2009 at 1:03 PM, Michael Droettboom <md...@st...> wrote:
> That's a very interesting idea. I actually think that with the recent
> textpath functionality that Jae-Joon added, we may be able to tie text and
> markers together without too much pain. Then it can advantage of all the
> performance optimizations in draw_markers. Each of the marker styles now
> contains a function that draws a path for the marker and then passes that to
> draw_marker. We could add one that draws an arbitrary text path, and then
> passes that along. I propose that Line.set_marker supports a new marker
> style "$...$" which would render whatever "..." is as math text.
>
> Were you offering to try to produce a patch yourself? Either way, it would
> be great to file an enhancement request in the tracker so this idea doesn't
> get lost. It's a good one.
>
> Mike
>
> tcb wrote:
>>
>> Hi,
>>
>> Is there some way to add support for latex symbols as markers?
>>
>> I think it would be an extension of the current methods for plotting
>> markers- since I dont think all the color, edge, line style etc
>> properties would be relevant (or even possible). However, it would
>> allow arbitrary symbols (at least whatever latex can do) to be used,
>> which would be really useful.
>>
>> The current marker set is fine for most simple plots- but when there
>> are a few different symbols it quickly becomes tricky to find a set
>> which can easily be distinguished from each other. The other problem
>> is that when preparing a graph for publication, it is occasionally
>> necessary to be able to refer to or quote the symbols in the caption
>> or the main text- and latex symbols in the graphs would make this look
>> a bit better.
>>
>> I've had a quick look at how the marker symbols are implemented, and
>> it is my impression that it would be reasonably hard to implement a
>> new symbol of choice. On the other hand, since I am already using
>> latex to produce all the text in the graph, it seems it should be
>> fairly straightforward (with some careful attention to the
>> positioning...) to use the same text-drawing code which is used for
>> the legend, axes labels etc, to put the markers on the plot.
>>
>> Is there any interest in this?
>>
>> thanks,
>>
>> tcb
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
>
> --
> Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>
From: Jae-Joon L. <lee...@gm...> - 2009年10月26日 16:50:14
On Mon, Oct 26, 2009 at 2:35 AM, <Boo...@cs...> wrote:
> Also (a different problem), I get an error message (when adding a legend, that no labels were defined). This is also changed behaviour since the upgrade. Seems like scatter has changed... but why?
This is a known bug.
http://www.nabble.com/No-legend-using-scatter-function-td24816047.html#a24816047
This is fixed in the svn, and I guess 0.99.1.1 shipped with this fixed.
If you don't want to upgrade, use the workaround in the above post.
Regards,
-JJ
Have you tried:
ax1.scatter(sanjose_y,sanjose_x,color=(0.9,0.9,0.0),label='SanJose',alpha=0.1)
That's what the scatter_demo2.py example does, and it appears to be working.
In general, alpha support is a bit inconsistent, and is the source of a 
number of these kinds of bugs -- where RGBA values are supported in some 
places but not in others. It's on the TODO list to fix, but it's rather 
pervasive so hasn't been tackled yet.
Mike
Boo...@cs... wrote:
> Reporting this as a matplotlib bug because that's where I see the error.
>
> I have some code which was running fine, drawing a scatter plot with transparent/alpha for the colour, like this...
>
> ax1.scatter(sanjose_y,sanjose_x,color=(0.9,0.9,0.0,0.1),label='SanJose')
>
> This used to draw a very faint transparent series of points which (where there were a lot of points) built up a fairly solid colour. Now, after an upgrade to Ubuntu 9.10 I see only solid colour, no transparency/alpha at all. Also (a different problem), I get an error message (when adding a legend, that no labels were defined). This is also changed behaviour since the upgrade. Seems like scatter has changed... but why?
>
> I tried downloading matplotlib source code and compiling -- and despite a few glitches (like, it was by default Mac compilation) -- I think I got that going OK. Still, I see exactly the same behaviour. Scatter is behaving differently, and I really need that alpha/transparency!!!
>
> Neither of these problems were evident on Ubuntu 9.04, and I was using the inbuilt matplotlib for that.
>
> Please excuse if this report is in the wrong place -- my first attempt to report a bug in this package.
>
> Cheers
> A
>
> --
> Andrew 'Boo' Davie
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Michael D. <md...@st...> - 2009年10月26日 13:04:04
That's a very interesting idea. I actually think that with the recent 
textpath functionality that Jae-Joon added, we may be able to tie text 
and markers together without too much pain. Then it can advantage of 
all the performance optimizations in draw_markers. Each of the marker 
styles now contains a function that draws a path for the marker and then 
passes that to draw_marker. We could add one that draws an arbitrary 
text path, and then passes that along. I propose that Line.set_marker 
supports a new marker style "$...$" which would render whatever "..." is 
as math text.
Were you offering to try to produce a patch yourself? Either way, it 
would be great to file an enhancement request in the tracker so this 
idea doesn't get lost. It's a good one.
Mike
tcb wrote:
> Hi,
>
> Is there some way to add support for latex symbols as markers?
>
> I think it would be an extension of the current methods for plotting
> markers- since I dont think all the color, edge, line style etc
> properties would be relevant (or even possible). However, it would
> allow arbitrary symbols (at least whatever latex can do) to be used,
> which would be really useful.
>
> The current marker set is fine for most simple plots- but when there
> are a few different symbols it quickly becomes tricky to find a set
> which can easily be distinguished from each other. The other problem
> is that when preparing a graph for publication, it is occasionally
> necessary to be able to refer to or quote the symbols in the caption
> or the main text- and latex symbols in the graphs would make this look
> a bit better.
>
> I've had a quick look at how the marker symbols are implemented, and
> it is my impression that it would be reasonably hard to implement a
> new symbol of choice. On the other hand, since I am already using
> latex to produce all the text in the graph, it seems it should be
> fairly straightforward (with some careful attention to the
> positioning...) to use the same text-drawing code which is used for
> the legend, axes labels etc, to put the markers on the plot.
>
> Is there any interest in this?
>
> thanks,
>
> tcb
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
Reporting this as a matplotlib bug because that's where I see the error.
I have some code which was running fine, drawing a scatter plot with transparent/alpha for the colour, like this...
ax1.scatter(sanjose_y,sanjose_x,color=(0.9,0.9,0.0,0.1),label='SanJose')
This used to draw a very faint transparent series of points which (where there were a lot of points) built up a fairly solid colour. Now, after an upgrade to Ubuntu 9.10 I see only solid colour, no transparency/alpha at all. Also (a different problem), I get an error message (when adding a legend, that no labels were defined). This is also changed behaviour since the upgrade. Seems like scatter has changed... but why?
I tried downloading matplotlib source code and compiling -- and despite a few glitches (like, it was by default Mac compilation) -- I think I got that going OK. Still, I see exactly the same behaviour. Scatter is behaving differently, and I really need that alpha/transparency!!!
Neither of these problems were evident on Ubuntu 9.04, and I was using the inbuilt matplotlib for that.
Please excuse if this report is in the wrong place -- my first attempt to report a bug in this package.
Cheers
A
--
Andrew 'Boo' Davie

Showing 9 results of 9

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