From: mtcoder <jbe...@gm...> - 2008-12-14 02:50:52
|
All, Thanks for the quick and informative responses. I've attached the code (testode.c). It requires the GSL library. I've also attached the script I was using to read and plot the data (odetest.py). [Note: If you do any tests with the python script make sure to change the savefig directory in plot() to something local. ] http://www.nabble.com/file/p20996825/testode.zip testode.zip test code John: I'm using evince to view pdf's (but acroread produces the same behavior as Michael's attachments showed). Michael: I changed the backend to Cairo and saved the figures directly to pdf. Same results. To be clear, to do this I changed the matplotlibrc file (backend GTKAgg -> Cairo) and then changed the filename in savefig to end with ".pdf". I assume that is what you had in mind. In addition, as requested here are two screenshots in png format of the actual pylab/matplotlib output: http://www.nabble.com/file/p20996825/odetest_pylabimg.png odetest_pylabimg.png output http://www.nabble.com/file/p20996825/odetest_pylabimg_zoom.png odetest_pylabimg_zoom.png output zoomed. Thanks for the help, -Jesse Michael Droettboom-3 wrote: > > Also -- for mtcoder: > > Can you send us the script that generates your plot? > > Also, if you set your backend to Cairo, and then generate the pdf, to > you get the same result? > > Cheers, > Mike > > Michael Droettboom wrote: >> There's something funny going on with line caps, maybe? It looks like >> the corners aren't getting capped in the same way as Agg does. >> >> I've created screenshots of Jesse's pdf file in acrobat and evince. >> >> Any thought, Jouni? >> >> Cheers, >> Mike >> >> John Hunter wrote: >>> On Thu, Dec 11, 2008 at 11:16 PM, mtcoder <jbe...@gm...> wrote: >>> >>> >>>> http://www.nabble.com/file/p20970084/testode.rk45.a0.99.eps1e-07.pdf >>>> testode.rk45.a0.99.eps1e-07.pdf . This comes from a completely >>>> deterministic >>>> ode. But is looks like I've added a tiny amount of noise. >>>> >>>> On a technical note, I'm running Ubuntu 8.04, python2.5.1, >>>> matplotlib0.91.2 >>>> (with GTKAgg backend). >>>> >>>> (Hopefully I didn't miss a similar question--and solution--elsewhere >>>> in the >>>> forum.) >>>> >>> >>> My guess is that you may be seeing the antialiasing of your pdf >>> renderer. matplotlib has a pretty good antialiasing renderer for the >>> screen display (antigrain) but your mileage may vary for your pdf >>> renderer. Since pdf is a vector output, we have no control over the >>> renderering. What pdf viewer are you using? The best way for us to >>> see what you are seeing is to take a PNG screenshot of your PDF file >>> displayed in your viewer and then post the PNG. Ie, here is what I am >>> seeing in the Preview app: the fuzziness is from the antialiasing, but >>> I am used to seeing this. >>> >>> ------------------------------------------------------------------------ >>> >>> ------------------------------------------------------------------------ >>> >>> ------------------------------------------------------------------------------ >>> >>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, >>> Nevada. >>> The future of the web can't happen without you. Join us at MIX09 to >>> help >>> pave the way to the Next Web now. Learn more and register at >>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Matplotlib-users mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >>> >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, >> Nevada. >> The future of the web can't happen without you. Join us at MIX09 to help >> pave the way to the Next Web now. Learn more and register at >> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://www.nabble.com/Fuzzy-plots-of-ode-solutions-tp20970084p20996825.html Sent from the matplotlib - users mailing list archive at Nabble.com. |