chiluf / visvis

Automatically exported from code.google.com/p/visvis
Other
1 stars 0 forks source link

Colormap Values Scaled to 0-1 on Z-axis #85

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a 3D array and render with m = vv.surf()
2. Apply colormap with m.colormap = vv.CM_JET

What is the expected output? What do you see instead?
The colormap correctly renders, although its full range is within 0-1 Z values. 
 Float and integer coordinate data is mutually affected. This issue seems to be 
a scaling problem, located somewhere in the handoff to GL.  I was unable to 
locate it.  2D colormaps work fine, only 3D colormaps are affected.

What version of the product are you using? On what operating system?
Ubuntu Trusty 14.04 with Python 2.7.6.  The issue appears to be machine 
independent.  Same result on multiple machines, graphics cards and backends 
(Qt4 and wx).

Original issue reported on code.google.com by kylebass...@gmail.com on 14 Jan 2015 at 1:04

Attachments:

GoogleCodeExporter commented 9 years ago
Better view.

Original comment by kylebass...@gmail.com on 14 Jan 2015 at 1:06

Attachments:

GoogleCodeExporter commented 9 years ago
I might have found the "bug".  I was not using:
m.clim = LOWER, UPPER

I thought the code was written to autoscale, and ended up digging for a bug in 
the auto-scaling functionality.

Original comment by kylebass...@gmail.com on 14 Jan 2015 at 1:38

GoogleCodeExporter commented 9 years ago
Mmm. I think the code *should* autoscale. But indeed it does not. Will look 
into it.

Original comment by almar.klein@gmail.com on 17 Jan 2015 at 10:27

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/visvis/source/detail?r=d61abb73b3f1b9eb0dcfd5f1b540f9e
cfdf724da

Original comment by almar.klein@gmail.com on 17 Jan 2015 at 10:51