Re: [Matplotlib-users] Looking for a way to save a graph

2007-11-05 Thread Fabrice Silva

Le vendredi 24 août 2007 à 11:30 +0200, David Tremouilles a écrit :
> OK I see... nothing straightforward...
> 
> Best way for me is maybe to implement such a system myself:
> The system would collect the information to be saved by kind of
> introspection of the figure.
> I'm planning to save data and plot properties in an hdf5 file. Kind of
> inverted process will be used to restore the figure.
> Of course I will not cover the whole possible figure case but only
> what I'm currently using for my work.
> If somebody did similar work and is eager to share or
> if somebody have any suggestion please let me know.

Hello,
I was looking for save functionality of the list, and I've read your
post. Did you managed to write such a system? Could you please share it,
I would like to be able to save a figure in order to modify later on its
properties (line thickness, title, axes, etc...)

Thanks



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] problems with eps files and pylab

2007-11-05 Thread william ratcliff
Hi! I hope I have what is a simple question:

I recently created a figure using pylab and saved it using:
pylab.savefig(r'c:\fig3b.pdf',dpi=150)
and it worked great.  I made the same figure with a .png ending and it
also worked well.

However, when I tried to make an eps file for use with latex and
publishing, I found:
using gsview:

DSC Error at line 527
%%Page: 11
This %%Page:line occured in the trailer, which is not legal.
EPS files should be encapsulated in %%BeginDocument/ %%EndDocument
It is possible that an EPS file was incorrectly encapsulated and that
we have been cofused by the %%Trailer in an EPS file

If I ignore all DSC, then I see a figure with noticeable gridding
across it.  However, if I use distiller to convert it to a PDF file,
it appears fine.
Any ideas?

Thanks,
William
(the files are rather large, but are available at:
ftp://ftp.ncnr.nist.gov/pub/
as fig3b.ps, fig3b.pdf, fig3b.png)

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problems with eps files and pylab

2007-11-05 Thread Darren Dale
On Monday 05 November 2007 3:48:11 pm william ratcliff wrote:
> Hi! I hope I have what is a simple question:
>
> I recently created a figure using pylab and saved it using:
> pylab.savefig(r'c:\fig3b.pdf',dpi=150)
> and it worked great.  I made the same figure with a .png ending and it
> also worked well.
>
> However, when I tried to make an eps file for use with latex and
> publishing, I found:
> using gsview:
>
> DSC Error at line 527
> %%Page: 11
> This %%Page:line occured in the trailer, which is not legal.
> EPS files should be encapsulated in %%BeginDocument/ %%EndDocument
> It is possible that an EPS file was incorrectly encapsulated and that
> we have been cofused by the %%Trailer in an EPS file
>
> If I ignore all DSC, then I see a figure with noticeable gridding
> across it.  However, if I use distiller to convert it to a PDF file,
> it appears fine.
> Any ideas?
>
> Thanks,
> William
> (the files are rather large, but are available at:
> ftp://ftp.ncnr.nist.gov/pub/
> as fig3b.ps, fig3b.pdf, fig3b.png)

Where is the eps file?

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problems with eps files and pylab

2007-11-05 Thread william ratcliff
ftp://ftp.ncnr.nist.gov/pub

fig3b.ps

Is what I generated, using savefig.  Does this generate postscript, or
eps output?  If I changed the extension in savefig to, ".eps" would it
generate an eps file?

Thanks,
William

On Nov 5, 2007 4:31 PM, Darren Dale <[EMAIL PROTECTED]> wrote:
>
> On Monday 05 November 2007 3:48:11 pm william ratcliff wrote:
> > Hi! I hope I have what is a simple question:
> >
> > I recently created a figure using pylab and saved it using:
> > pylab.savefig(r'c:\fig3b.pdf',dpi=150)
> > and it worked great.  I made the same figure with a .png ending and it
> > also worked well.
> >
> > However, when I tried to make an eps file for use with latex and
> > publishing, I found:
> > using gsview:
> >
> > DSC Error at line 527
> > %%Page: 11
> > This %%Page:line occured in the trailer, which is not legal.
> > EPS files should be encapsulated in %%BeginDocument/ %%EndDocument
> > It is possible that an EPS file was incorrectly encapsulated and that
> > we have been cofused by the %%Trailer in an EPS file
> >
> > If I ignore all DSC, then I see a figure with noticeable gridding
> > across it.  However, if I use distiller to convert it to a PDF file,
> > it appears fine.
> > Any ideas?
> >
> > Thanks,
> > William
> > (the files are rather large, but are available at:
> > ftp://ftp.ncnr.nist.gov/pub/
> > as fig3b.ps, fig3b.pdf, fig3b.png)
>
> Where is the eps file?
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problems with eps files and pylab

2007-11-05 Thread Darren Dale
On Monday 05 November 2007 5:25:48 pm william ratcliff wrote:
> ftp://ftp.ncnr.nist.gov/pub
>
> fig3b.ps
>
> Is what I generated, using savefig.  Does this generate postscript, or
> eps output?  If I changed the extension in savefig to, ".eps" would it
> generate an eps file?

.ps is postscript, .eps is encapsulated postscript. Yes, you need to 
specify .eps if you want an eps file.

> On Nov 5, 2007 4:31 PM, Darren Dale <[EMAIL PROTECTED]> wrote:
> > On Monday 05 November 2007 3:48:11 pm william ratcliff wrote:
> > > Hi! I hope I have what is a simple question:
> > >
> > > I recently created a figure using pylab and saved it using:
> > > pylab.savefig(r'c:\fig3b.pdf',dpi=150)
> > > and it worked great.  I made the same figure with a .png ending and it
> > > also worked well.
> > >
> > > However, when I tried to make an eps file for use with latex and
> > > publishing, I found:
> > > using gsview:
> > >
> > > DSC Error at line 527
> > > %%Page: 11
> > > This %%Page:line occured in the trailer, which is not legal.
> > > EPS files should be encapsulated in %%BeginDocument/ %%EndDocument
> > > It is possible that an EPS file was incorrectly encapsulated and that
> > > we have been cofused by the %%Trailer in an EPS file
> > >
> > > If I ignore all DSC, then I see a figure with noticeable gridding
> > > across it.  However, if I use distiller to convert it to a PDF file,
> > > it appears fine.
> > > Any ideas?
> > >
> > > Thanks,
> > > William
> > > (the files are rather large, but are available at:
> > > ftp://ftp.ncnr.nist.gov/pub/
> > > as fig3b.ps, fig3b.pdf, fig3b.png)
> >
> > Where is the eps file?
> >
> > -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > ___
> > Matplotlib-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users



-- 
Darren S. Dale, Ph.D.
[EMAIL PROTECTED]

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problems with eps files and pylab

2007-11-05 Thread william ratcliff
ok, so, the file I generated is ".ps", so why is the gridding occuring?

Thanks,
William

On Nov 5, 2007 6:25 PM, Darren Dale <[EMAIL PROTECTED]> wrote:
> On Monday 05 November 2007 5:25:48 pm william ratcliff wrote:
> > ftp://ftp.ncnr.nist.gov/pub
> >
> > fig3b.ps
> >
> > Is what I generated, using savefig.  Does this generate postscript, or
> > eps output?  If I changed the extension in savefig to, ".eps" would it
> > generate an eps file?
>
> .ps is postscript, .eps is encapsulated postscript. Yes, you need to
> specify .eps if you want an eps file.
>
>
> > On Nov 5, 2007 4:31 PM, Darren Dale <[EMAIL PROTECTED]> wrote:
> > > On Monday 05 November 2007 3:48:11 pm william ratcliff wrote:
> > > > Hi! I hope I have what is a simple question:
> > > >
> > > > I recently created a figure using pylab and saved it using:
> > > > pylab.savefig(r'c:\fig3b.pdf',dpi=150)
> > > > and it worked great.  I made the same figure with a .png ending and it
> > > > also worked well.
> > > >
> > > > However, when I tried to make an eps file for use with latex and
> > > > publishing, I found:
> > > > using gsview:
> > > >
> > > > DSC Error at line 527
> > > > %%Page: 11
> > > > This %%Page:line occured in the trailer, which is not legal.
> > > > EPS files should be encapsulated in %%BeginDocument/ %%EndDocument
> > > > It is possible that an EPS file was incorrectly encapsulated and that
> > > > we have been cofused by the %%Trailer in an EPS file
> > > >
> > > > If I ignore all DSC, then I see a figure with noticeable gridding
> > > > across it.  However, if I use distiller to convert it to a PDF file,
> > > > it appears fine.
> > > > Any ideas?
> > > >
> > > > Thanks,
> > > > William
> > > > (the files are rather large, but are available at:
> > > > ftp://ftp.ncnr.nist.gov/pub/
> > > > as fig3b.ps, fig3b.pdf, fig3b.png)
> > >
> > > Where is the eps file?
> > >
> > > -
> > > This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a browser.
> > > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > > ___
> > > Matplotlib-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
>
> --
> Darren S. Dale, Ph.D.
> [EMAIL PROTECTED]
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users