I would love it if we could move away from using lookup tables and toward a
more general colormapping model. The ColorMap class was intended to be a
start in this direction, but I think this would take a lot more work to
sort out.


On Mon, Jul 11, 2016 at 4:23 PM, Federico Barabas <[email protected]>
wrote:

>
> One question remains: is there an easy way of hiding all the ticks next to
> the gradient? I don't need them and they don't look good because the
> colormap has a tick for each position between 0 and 255. I tried
> subclassing TickSliderItem but in the end I failed.
>

I suppose the easiest way is just to hide the ticks after you set the
gradient, and maybe adjust the width of the gradient editor, like:

  for tick in histogramLutItem.gradient.ticks:
      tick.hide()
  histogramLutItem.gradient.setFixedWidth(...)

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/CACZXET8sUPK1OgprTcDC%2BS_Fhxd%2B7TRu7%3DUYt2oEH9SRaseeCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to