From: Lingyun Y. <lin...@gm...> - 2007-09-11 22:39:18
|
Hi, I am using matplotlib to visualize my data, but the data sometimes have several sets. Can I plot each set as usual to a EPS file, and combine these EPS file into a single ps file, each page of this ps file is only one EPS file I got before. Thanks. Lingyun |
From: Manuel M. <mm...@as...> - 2007-09-12 07:47:18
|
On a Linux box: psmerge -ooutfile.ps figure1.eps figure2.eps Anyway, I guess you need an external tool to do this ... Manuel Lingyun Yang wrote: > Hi, > > I am using matplotlib to visualize my data, but the data sometimes have > several sets. > Can I plot each set as usual to a EPS file, and combine these EPS file into > a single ps file, > each page of this ps file is only one EPS file I got before. > > > Thanks. > > Lingyun > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Ryan K. <rya...@gm...> - 2007-09-12 13:11:12
|
It is probably overkill, but I use Latex for this. You can fairly easily have Python generate a text file that is the Latex input, including captions for each figure. And then call latex using os.system. This might get you a psmerge for windows: http://gnuwin32.sourceforge.net/packages/psutils.htm Ryan On 9/12/07, Manuel Metz <mm...@as...> wrote: > On a Linux box: > psmerge -ooutfile.ps figure1.eps figure2.eps > > Anyway, I guess you need an external tool to do this ... > > Manuel > > Lingyun Yang wrote: > > Hi, > > > > I am using matplotlib to visualize my data, but the data sometimes have > > several sets. > > Can I plot each set as usual to a EPS file, and combine these EPS file into > > a single ps file, > > each page of this ps file is only one EPS file I got before. > > > > > > Thanks. > > > > Lingyun > > > > > > > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Martin B. <nee...@ya...> - 2007-09-12 14:20:00
|
I recently asked a question along the same lines... MATLAB has a command, print, and it allows you to output a figure to a file, such as a .ps file and it has a switch '-append' so that you can append multiple plots to the same file. Is there a switch for the pylab command, 'savefig' to do the same thing? There does not seem to be an equivalent print command. Ryan Krauss <rya...@gm...> wrote: It is probably overkill, but I use Latex for this. You can fairly easily have Python generate a text file that is the Latex input, including captions for each figure. And then call latex using os.system. This might get you a psmerge for windows: http://gnuwin32.sourceforge.net/packages/psutils.htm Ryan On 9/12/07, Manuel Metz wrote: > On a Linux box: > psmerge -ooutfile.ps figure1.eps figure2.eps > > Anyway, I guess you need an external tool to do this ... > > Manuel > > Lingyun Yang wrote: > > Hi, > > > > I am using matplotlib to visualize my data, but the data sometimes have > > several sets. > > Can I plot each set as usual to a EPS file, and combine these EPS file into > > a single ps file, > > each page of this ps file is only one EPS file I got before. > > > > > > Thanks. > > > > Lingyun > > > > > > > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users --------------------------------- Check out the hottest 2008 models today at Yahoo! Autos. |
From: <jk...@ik...> - 2007-09-12 14:32:58
|
Martin Bures <nee...@ya...> writes: > MATLAB has a command, print, and it allows you to output a figure to a > file, such as a .ps file and it has a switch '-append' so that you can > append multiple plots to the same file. > > Is there a switch for the pylab command, 'savefig' to do the same > thing? No, at least not currently. -- Jouni K. Seppänen http://www.iki.fi/jks |
From: Lingyun Y. <lin...@gm...> - 2007-09-12 16:21:31
|
On 9/12/07, Jouni K. Sepp=E4nen <jk...@ik...> wrote: > > Martin Bures <nee...@ya...> > writes: > > > MATLAB has a command, print, and it allows you to output a figure to a > > file, such as a .ps file and it has a switch '-append' so that you can > > append multiple plots to the same file. > > > > Is there a switch for the pylab command, 'savefig' to do the same > > thing? > > No, at least not currently. > > -- > Jouni K. Sepp=E4nen > http://www.iki.fi/jks > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > somthing like append(filename) will be the best thing to do it. but this will not work for *.png files. I am not familiar with EPS and PS. I thought only ps supports multipages, and each page has one figure. Since my data analysis and plotting works sometimes on Linux(office), sometimes Windows (home). A native support from matplotlib would be fantasitic. Thanks for the suggestions. |