[Paraview-developers] ColorLegend properties ParaviewWeb

Albrecht Kyrieleis akyrieleis at gmail.com
Mon Jan 13 11:23:17 EST 2014


In order to change properties of some proxy in some group, e.g. property
'Color' of proxy 'TextProperty' in group 'properties'. I tried:

prx = proxyManager.GetProxy("properties", "TextProperty")
prx.Color=[0.0, 1.0, 0.0]

which does not work.

What is wrong ?

Thank you

kyr.



On 13 January 2014 16:13, Sebastien Jourdain <sebastien.jourdain at kitware.com
> wrote:

> Yes Python can edit those properties.
>
> Same as before, once you identified the proxy, you can look at its
> properties and find the ones that you need to change.
> The proxies are defined inside XML files which can be found here:
> ${src}/ParaViewCore/ServerManager/SMApplication/Resources/*.xml
>
> Seb
>
>
> On Mon, Jan 13, 2014 at 8:06 AM, Albrecht Kyrieleis <akyrieleis at gmail.com>wrote:
>
>> OK. But I guess it is nevertheless possible to set the color of the text
>> (on the legend) through python in PV/Web ?
>>
>> How can I find out which parameter that is and on which proxy ??
>>
>> Thank you
>>
>> Albrecht
>>
>>
>> On 13 January 2014 15:57, Sebastien Jourdain <
>> sebastien.jourdain at kitware.com> wrote:
>>
>>> The state file should kept those information. This is a bug and I
>>> believe it is the same one as this one:
>>> http://www.paraview.org/Bug/view.php?id=13215
>>>
>>>
>>> On Mon, Jan 13, 2014 at 7:07 AM, kyr <akyrieleis at gmail.com> wrote:
>>>
>>>> If I open in Paraview a very simple vtk file :
>>>>
>>>> # vtk DataFile Version 1.0
>>>> C
>>>> ====================================================================== C
>>>> ASCII
>>>>
>>>> DATASET RECTILINEAR_GRID
>>>> DIMENSIONS 3 3 3
>>>> X_COORDINATES 3 float
>>>> 0 2 4
>>>> Y_COORDINATES 3 float
>>>> 0 4 8
>>>> Z_COORDINATES 3 float
>>>> -1 0 1
>>>>
>>>> POINT_DATA 27
>>>> SCALARS data_scalars double
>>>> LOOKUP_TABLE default
>>>> 10 20 30
>>>> 40 50 60
>>>> 70 80 90
>>>>
>>>> 10 20 30
>>>> 40 50 60
>>>> 70 80 90
>>>>
>>>> 10 20 30
>>>> 40 50 60
>>>> 70 80 90
>>>>
>>>>
>>>> SCALARS data_errors double
>>>> LOOKUP_TABLE default
>>>> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
>>>>
>>>> and then save as a state file: where in the state file will the color
>>>> of the
>>>> text on the color legend be stored ? Is it actually stored in the pvsm
>>>> file
>>>> ? If I change the text color in Paraview and then load a state file
>>>> (produced with another text color setting) then the text color is
>>>> unchanged.
>>>>
>>>> Thank you
>>>>
>>>> kyr.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/ColorLegend-properties-ParaviewWeb-tp2756p2773.html
>>>> Sent from the The Unofficial ParaView Developers Forum mailing list
>>>> archive at Nabble.com.
>>>> _______________________________________________
>>>> Paraview-developers mailing list
>>>> Paraview-developers at paraview.org
>>>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20140113/1a93d6df/attachment.html>


More information about the Paraview-developers mailing list