Re: [Matplotlib-users] Font sizes for web application
On Mon, Dec 1, 2008 at 12:56 AM, Jesper Larsen <[EMAIL PROTECTED]> 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=/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] 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=/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] 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=/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] plot_date - extra values added that are not inmy data
Thanks Sunnje, xlim worked perfectly, I was already using ylim to increase the y scale range to be up to 100 , never clicked to use the same for the dates. Cheers On 11/30/08, Sunnje L Basedow <[EMAIL PROTECTED]> wrote: > Hi, > I'm also new to matplotlib and am still wrestling with my figures > Have you tried: > axis('tight') > but that will also affect the yaxis. > Or: > set_xlim(valmin, valmax) > Don't know if it works with date though. > Good luck! > Sünnje > > > > -Original Message- > From: Richard Martin [mailto:[EMAIL PROTECTED] > Sent: Sun 11/30/2008 22:06 > To: matplotlib-users@lists.sourceforge.net > Subject: [Matplotlib-users] plot_date - extra values added that are not > inmy data > > Hello, > > I have been wrestling with matplotlib all evening (im completely new > to it since a few hours ago) and finally almost have my graph > finished. > > There is just one thing left that I can't seem to figure out myself. > I have attached the graph for reference (hope attachments are > allowed). > > It is a date plot, my data starts at 16:58:11 and ends at 17:25:14 but > for some reason I am being given ticks for a few minutes before and a > few minutes after. > > Is there some kind of compress, or trim function that I can use to get > rid of these and have the axis start at my first data point and end at > my last. Or at least the nearest major tick? > > Cheers > > - 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] plot_date - extra values added that are not in my data
Hello, I have been wrestling with matplotlib all evening (im completely new to it since a few hours ago) and finally almost have my graph finished. There is just one thing left that I can't seem to figure out myself. I have attached the graph for reference (hope attachments are allowed). It is a date plot, my data starts at 16:58:11 and ends at 17:25:14 but for some reason I am being given ticks for a few minutes before and a few minutes after. Is there some kind of compress, or trim function that I can use to get rid of these and have the axis start at my first data point and end at my last. Or at least the nearest major tick? Cheers <>- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users