Ejemplo n.º 1
0
 def test_points_cbar_extend_clime(self):
     img = Points(([0, 1], [0, 3])).opts(style=dict(clim=(None, None)))
     plot = mpl_renderer.get_plot(img.opts(colorbar=True, color_index=1))
     self.assertEqual(plot.handles['cbar'].extend, 'neither')
Ejemplo n.º 2
0
 def test_points_cbar_extend_max(self):
     img = Points(([0, 1], [0, 3])).redim(y=dict(range=(None, 2)))
     plot = mpl_renderer.get_plot(img.opts(colorbar=True, color_index=1))
     self.assertEqual(plot.handles['cbar'].extend, 'max')