Alan G Isaac | 1 Dec 02:31
Picon
Favicon
Gravatar

Re: split axis scale

On 11/29/2008 1:08 PM Eric Firing apparently wrote:
 > for tl in ax2.get_yticklabels():
 >     tl.set_color('r')

Obvious once you see it.
Nice.

Alan Isaac

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Jesper Larsen | 1 Dec 06:56
Picon

Font sizes for web application

Hi Matplotlib users,

I have a web application in which I would like to scale the plots down
if the users horizontal screen size is less than 800. Currently only
the plot is scaled while the fonts are fixed in size (see link below
for application). This is of course not a viable solution. I was
therefore wondering what the best way to scale fonts consistently with
figure size is. A requirement is that the scaling is thread safe (or
whatever it is called) in the sense that it should not affect other
threads executing matplotlib (since they may have different screen
resolutions).

As far as I can see the relative font size is not an option since they
seem to be adjusted globally by:

matplotlib.font_manager.set_default_size(size)

If that is true I guess I better calculate the font size each time I
write text to the plot and give it explicitly as an input parameter.
What is your opinion on that?

Best regards,
Jesper

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
(Continue reading)

Jae-Joon Lee | 1 Dec 07:30
Picon
Gravatar

Re: Font sizes for web application

On Mon, Dec 1, 2008 at 12:56 AM, Jesper Larsen
<jesper.webmail@...> wrote:
> Hi Matplotlib users,
>
> I have a web application in which I would like to scale the plots down
> if the users horizontal screen size is less than 800. Currently only
> the plot is scaled while the fonts are fixed in size (see link below
> for application). This is of course not a viable solution. I was
> therefore wondering what the best way to scale fonts consistently with
> figure size is. A requirement is that the scaling is thread safe (or
> whatever it is called) in the sense that it should not affect other
> threads executing matplotlib (since they may have different screen
> resolutions).
>

Saving the figure with smaller dpi doesn't work?
It is not clear how you're scaling down the over all plot (smaller
figure size, maybe?),
but I guess the easiest way is to have everything same and save it
with a smaller dpi.

-JJ

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Manuel Metz | 1 Dec 09:18
Picon
Favicon

Re: Plotting histograms with zero counts

Yang Zhang wrote:
> Hi, when I do:
> 
>    hist([0,0,0], bins=10, range=(0,10))
> 
> How come the single bin takes up the entire plot?  Same with just two 
> values, or anything less than 10 - the two bars take up the entire plot, 
> no matter what I plug in for range.  I'd just like 10 bins, from 0 to 9.

That's a bug in the current implementation (see also
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503148).

mm

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Manuel Metz | 1 Dec 13:49
Picon
Favicon

Re: Plotting histograms with zero counts

Manuel Metz wrote:
> Yang Zhang wrote:
>> Hi, when I do:
>>
>>    hist([0,0,0], bins=10, range=(0,10))
>>
>> How come the single bin takes up the entire plot?  Same with just two 
>> values, or anything less than 10 - the two bars take up the entire plot, 
>> no matter what I plug in for range.  I'd just like 10 bins, from 0 to 9.
> 
> That's a bug in the current implementation (see also
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503148).

This is fixed now on the trunk.

mm

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Hrafnkell Pálsson | 1 Dec 14:01
Picon
Picon
Favicon

Re: Save a plot background


Any chance of further help?
John?

Hrafnkell
--

-- 
View this message in context: http://www.nabble.com/Save-a-plot-background-tp20519596p20771515.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Manuel Metz | 1 Dec 15:13
Picon
Favicon

Re: Make markers in legend to appear only once

Alejandro Weinstein wrote:
> Hi:
> 
> I am plotting using markers, in a similar way than this example:
> 
> http://matplotlib.sourceforge.net/examples/pylab_examples/legend_demo2.html
> 
> As you can see in the example above, the markers in the legend appear
> twice: " 'green circle' 'green circle' oscillatory".
> 
> Is it possible to make the markers to appear only once, like " 'green
> circle' oscillatory" ?

You can use the keyword "numpoints" in the legend method:

legend( (l2, l4), ('oscillatory', 'damped'), 'upper right', shadow=True, 
numpoints=1)

should do the job.

mm

> Regards,
> Alejandro.
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
(Continue reading)

Picon

Re: Make markers in legend to appear only once

On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz
<mmetz@...> wrote:
> You can use the keyword "numpoints" in the legend method:

Thank you! It did the trick.

Now how you conclude that from the documentation is a mystery:

>From the docs:
"
numpoints: integer
    The number of points in the legend line, default is 4"

Regards,
Alejandro.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Nate | 1 Dec 16:17
Picon
Favicon

plot with drop shadow

Is there a way to plot lines with drop shadows?

Thanks,
Nate

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Manuel Metz | 1 Dec 16:38
Picon
Favicon

Re: Make markers in legend to appear only once

Alejandro Weinstein wrote:
> On Mon, Dec 1, 2008 at 7:13 AM, Manuel Metz
<mmetz@...> wrote:
>> You can use the keyword "numpoints" in the legend method:
> 
> Thank you! It did the trick.
> 
> Now how you conclude that from the documentation is a mystery:
> 
>>From the docs:
> "
> numpoints: integer
>     The number of points in the legend line, default is 4"

Ah, that's apparently a bug in the docs, which I've fixed in the sources.

> Regards,
> Alejandro.
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-------------------------------------------------------------------------
(Continue reading)


Gmane