Two-Color DualCmapΒΆ

../../_images/uv_dualcmap_t.png

The following DualCmap emphasizes relationship between the surface to parametic quadrants:

../../_images/cmap_uv_binary.png

The script to generate the above figure is identical to the U,V Value DualCmap example with the Dualcmap defined as:

blue_red =  cmu.binary_cmap([0,0,1],[1,0,0], name='blue_red')
red_green = cmu.binary_cmap([1,0,0],[0,1,0], name='red_green')
cmap2d = cmu.DualCmap(blue_red,red_green,name='mcyr2')

The parametric quadrants normal to the xy axis are shown below:

../../_images/uv_dualcmap_t_z.png

where the 3-D axis view is set as:

ax.view_init(90,90)
ax.set_proj_type('ortho')

In addition, the rez argument was increased to 7, reducing the abrupt visual discontinuities between two colored regions.