[Paraview] [EXTERNAL] Re: FW: Paraview Legend/Colorbar Question
Biddiscombe, John A.
biddisco at cscs.ch
Thu Jun 12 06:00:46 EDT 2014
Alan
I have not looked at the discreet colour legends myself, but I would work hard to avoid using the clip filters to separate out the good/bad data.
If I had to do it, I’d replace the scalars to colours painter with one that stuffed in the colour I wanted in the out of bounds areas.
Actually, that would mean sub classing the representation and overriding the painter build chain - which is ok, but it wouldn’t make the legend on screen change, so perhaps it’s not so useful after all.
pretend I didn’t post this email, (but consider it anyway, just in case! - I’ve been creating custom representation recently and got a bit carried away with what you can do)
JB
From: ParaView [mailto:paraview-bounces at paraview.org] On Behalf Of Scott, W Alan
Sent: 12 June 2014 03:40
To: Utkarsh Ayachit
Cc: paraview at paraview.org
Subject: Re: [Paraview] [EXTERNAL] Re: FW: Paraview Legend/Colorbar Question
Thanks. My best idea was to create three filters – clip by scalar for data below the acceptable minimum (solid color), another for above the accepted maximum (solid color), and third within range (discrete colors). Hacky, and the outside range colors won’t show on the color legend, but it should work.
Alan
From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com]
Sent: Wednesday, June 11, 2014 6:58 PM
To: Scott, W Alan
Cc: paraview at paraview.org<mailto:paraview at paraview.org>
Subject: [EXTERNAL] Re: [Paraview] FW: Paraview Legend/Colorbar Question
Out-of-range colors are not supported yet. For non-discrete colors, you can hack it by adding extra control points above and below the region of interest, but that's only a hack and not available for categorical/discrete colors.
Utkarsh
On Wed, Jun 11, 2014 at 7:52 PM, Scott, W Alan <wascott at sandia.gov<mailto:wascott at sandia.gov>> wrote:
A question from one of my users. Anyone have any ideas? I know how to solve the 5 discrete color question, but the out of range one stumps me. (This bug was written up as bug 6657).
Thanks,
Alan
I remember we had some discussion a while back about creating legends and wanted to follow-up with you. Is there a way for me to reproduce a legend like the one I’m attaching here?
[cid:image001.png at 01CF8635.F13EFF20]
Ideally, I’d like to use the default color scheme (with 5 discrete colors) but then also add magenta and cyan to highlight data that is outside of a certain range. Let’s say I have information to color in the default scheme from 1 to 10, but I want everything below 1 to be cyan and above 10 to be magenta. Can I explicitly tell Paraview to do that? If so, how might that be done in the most recent version?
_______________________________________________
Powered by www.kitware.com<http://www.kitware.com>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140612/247f9903/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 3535 bytes
Desc: image001.png
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140612/247f9903/attachment-0001.png>
More information about the ParaView
mailing list