Hi

I am trying to programmatically move one of the ticks in the gradient 
editor of a histogramLUT.  I tried this...


hist = pg.HistogramLUTItem()
hist.setImageItem(my_image)
hist.gradient.loadPreset('yellowy')
current_ticks = hist.gradient.listTicks()
hist.gradient.setTickValue(current_ticks[2], 0.4)

But I get the error:

File "/Users/myname/directory/plot.py", line 99, in update_images
>     *hist.gradient.setTickValue(current_ticks[2], 0.4)*
>   File 
> "/Users/myname/opt/anaconda3/envs/my_env/lib/python3.6/site-packages/pyqtgraph/graphicsItems/GradientEditorItem.py",
>  
> line 309, in setTickValue
>     pos = tick.pos()
> AttributeError: 'tuple' object has no attribute 'pos'
>

Am I missing something?  Or is there a better way to do this?

Thanks
J

-- 
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/60afc206-e468-48d2-ad0d-932488f78b56%40googlegroups.com.

Reply via email to