Claas Teichmann wrote: > Hi Eric, > > Great that it works!! This is what I was looking for! > > There is one thing left, which is that the tick labels are not exactly > at the boundary between the colors. (It is no problem for me, but I am > interested where it comes from). The script below shows that the > colorswitch is not exactly at an "even" number. The values > -0.022000001 and -0.022 are colored with the same color, whereas > -0.02200001 has a different color. I don't know whether this is the > reason for the ticks not beeing exactly at the intersection..?
When I run the script below I don't see what you are describing above; but I may not be looking in the right place, and it would not surprise me if there are little anomalies like this, because we are dealing with floating point arithmetic. I do see (and had noticed before) that the colorbar ticks look a tiny bit high. I don't know whether this is a bug or whether it is a consequence of the fact that colors are assigned to ranges that include the lower limit but not the upper limit, and/or floating point arithmetic, and/or the resolution of the display. Or it may be because of some floating point fudge factors that I put into the colorbar code. Maybe these could be improved. Eric ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users