N. Volbers wrote:
Hmmm now that you mention antialiasing ... I turned it off in my .matplotlibrc but my plots (GTKAgg on Linux) are still antialiased. I had the same problem on Win (TkAgg) but didn't bother too much. I remember that there was a discussion before about this. I'm using mpl 0.81. Would upgrading fix this issue?
I tested the python script on my mpl, version 0.83.1 with no custom matplotlibrc. To my surprise, I got the result you were talking about. Then I opened the resulting eps with gv on linux. There is an option "antialias", which when you turn it on, will cause this color mixing.
To demonstrate this, I wrote a little gnuplot script that produces a similar output. If you look at the attached file with gv and toggle antialiasing, you will notice the same effect as with mpl.
Yes I can varify that (on Win) with gsview (where turning off AA is done by setting Media > Display Settings > 'Text Alpha' and 'Graphics Alpha' to 1 bit). OK so it really seems to be no mpl issue. Just like Jhon mentioned
But one problem remains: I'm not able to turn off AA in .matplotlibrc
If anyone could point me in the right direction (upgrading, other backend?) ....
On a side note, when comparing these two graphs I noticed that the gnuplot generated eps is only 15 K while the mpl generated eps has a size of 300 K. Why is this so?
I guess the dpi setting. But playing around with different dpi settings
figure(dpi=<number>); plot(...); savefig(...)
_always_ produces a .eps of 365 kb.
Women are like cell phones. They like to be held and talked to, but push the wrong button, and you'll be disconnected.