Re: [Matplotlib-users] Call for new style defaults

2015-07-22 Thread Slavin, Jonathan
​I second that motion and would especially like it if the default color cycle were longer than the current one (7 colors). Jon​ On Wed, Jul 22, 2015 at 4:30 AM, matplotlib-users-requ...@lists.sourceforge.net wrote: From: Thomas Robitaille thomas.robitai...@gmail.com To: Thomas Caswell

Re: [Matplotlib-users] how to prevent colorbar from taking space from axes

2014-12-12 Thread Slavin, Jonathan
for colorbars in different ways: http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html?highlight=axes_grid1#axes-grid1 I hope that helps! Ben Root On Thu, Dec 11, 2014 at 1:49 PM, Slavin, Jonathan jsla...@cfa.harvard.edu wrote: Hi, I'm trying to make a plot with four panes (2x2

[Matplotlib-users] how to prevent colorbar from taking space from axes

2014-12-11 Thread Slavin, Jonathan
Hi, I'm trying to make a plot with four panes (2x2). The two on top are images, created with pcolormesh, while the ones on the bottom are line plots. I'd like to the axes to line up -- which they do -- but when I add a colorbar to the top right, it steals space from the image plot. I only need

[Matplotlib-users] best way to browse images

2014-10-14 Thread Slavin, Jonathan
Hi all, In my work lately I have often wanted to browse through a series of images. This means displaying the image(s), looking at it/them and then continuing. I have coded this in a few different ways, but it is generally pretty slow -- which is to say that the image display takes more than a

Re: [Matplotlib-users] best way to browse images

2014-10-14 Thread Slavin, Jonathan
the image to redraw, so you are only seeing it refresh for other reasons. Try adding a fig.draw() call prior to the raw_input() call. Cheers! Ben Root On Tue, Oct 14, 2014 at 10:03 AM, Slavin, Jonathan jsla...@cfa.harvard.edu wrote: Hi all, In my work lately I have often wanted to browse

Re: [Matplotlib-users] best way to browse images

2014-10-14 Thread Slavin, Jonathan
Hmm. I just saw that you suggest fig.draw(). Is there a difference with plt.draw()? Jon On Tue, Oct 14, 2014 at 11:20 AM, Slavin, Jonathan jsla...@cfa.harvard.edu wrote: Hi Ben, Sorry, in my little example, I left out a few things. I do update first after the first call. And I do call

Re: [Matplotlib-users] best way to browse images

2014-10-14 Thread Slavin, Jonathan
without the display of the images might not actually be loading any data into memory. Ben Root On Tue, Oct 14, 2014 at 11:22 AM, Slavin, Jonathan jsla...@cfa.harvard.edu wrote: Hmm. I just saw that you suggest fig.draw(). Is there a difference with plt.draw()? Jon On Tue, Oct 14

Re: [Matplotlib-users] Make clear figure used in the powerpoint slides?

2014-04-21 Thread Slavin, Jonathan
​Another alternative, if a vector graphics format doesn't work, is to make your png figure large. Then when you shrink it down to fit in your slide, it should still have good resolution. Jon​ On Mon, Apr 21, 2014 at 10:13 AM, matplotlib-users-requ...@lists.sourceforge.net wrote: No

Re: [Matplotlib-users] how to reduce the file size of plots generated with matplotlib

2014-03-25 Thread Slavin, Jonathan
I think what the responders have in mind is simply outputting files in a different format, e.g. png, which is rasterized. One alternative you might consider is using code written by Tom Robataille called rasterized_scatter. It automatically rasterizes your data points. You can find it on