CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ParaView

Changing the legend sizes

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By immortality

Reply
 
LinkBack Thread Tools Display Modes
Old   January 3, 2014, 10:45
Default Changing the legend sizes
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,209
Rep Power: 18
immortality is on a distinguished road
Hi again,
whay can't change the Legend size? it can't be seen in article where the image have to be in one of 2 columns in Word. in paraView it seems there is no way to increase the legend size.
one has reported this issue here: http://www.paraview.org/pipermail/pa...ch/024228.html is there a way to resolve it?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   January 4, 2014, 20:29
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ehsan,

Quoting myself from Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 post #58:
Quote:
Originally Posted by wyldckat View Post
As shown in attachment, there is a "Size" value control which controls the size of the font used in the color legend.

The problem is that when you increase the font, it increases for both sizes, and it depends on whether the "Automatic Tick Mark Format" is turned on or off.
On post #60: Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 - you can find the long description on a workaround for some use scenarios.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 5, 2014, 05:54
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,209
Rep Power: 18
immortality is on a distinguished road
Hi Bruno,
those posts were related to color legend,I mean the legend in plots that is a text box.not in the field of variables that are shown by color legend.
thanks.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   January 5, 2014, 08:57
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ehsan,

Sorry, I can't figure out which ones you're referring to

Can you please post a snapshot of what you're referring to? You don't need to post the complete image of ParaView, seeing only the 2D or 3D view should be enough.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 30, 2014, 13:57
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,209
Rep Power: 18
immortality is on a distinguished road
isn't there a way to increase dimension of legends in a plot data from VTK files?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   January 30, 2014, 18:06
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ehsan,

Can you provide an example image? I just want to be certain that we're talking about the same thing

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 30, 2014, 19:52
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,209
Rep Power: 18
immortality is on a distinguished road
Hi dear Bruno,
sorry a lot,I wanted to do that but don't know what happened and I forgot to add an attachment.
I mean the text related to each figure that lay in a box like the attached file.
when I paste it to Word,it becomes too small that's hard to see.
Attached Images
File Type: jpg U0_grid_independence.jpg (31.2 KB, 90 views)
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   February 1, 2014, 17:51
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ehsan,

I've spent the past hour or so trying to figure out if there was any way to get access via Python to the legend controls.
Currently, there is no possibility in ParaView 3.12.0 to 4.0.1 to change the font size on the legend. It's only possible to change visibility and location.

Unfortunately I could not find any way to access the method "GetChart()" that is in the class "vtkXYChartRepresentation", simply because there is no Python based proxy to that method and it doesn't look like there is any easy way to access it.

For future reference, I tried running the following commands, when the plot entry is selected on the "Pipeline Browser" and the chart display is selected in the view window:
Code:
dataview = GetActiveView()
chart = GetRepresentation()
The first one only provides the following Python based controls for the legend:
Code:
dataview.ShowLegend
dataview.LegendLocation
The second one doesn't provide access to the method "GetChart", which is the method that would give access to the "vtkChartXY" class structure, which in turn would give direct control over the legend.

The way I can see it, it would require modifying the ParaView source code, namely in the following files:
Code:
ParaViewCore/ClientServerCore/vtkPVXYChartView.*
ParaViewCore/ServerImplementation/Resources/views_and_representations.xml
Then it would be necessary to rebuild from source code the whole ParaView installation.


I'm going to go have a look into ParaView 4.1.0, to check if this feature exists on this latest version.
edit: I've finished checking and it does not have any new legend controls

Best regards,
Bruno
immortality likes this.

Last edited by wyldckat; February 1, 2014 at 18:06. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   February 1, 2014, 18:24
Default
  #9
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,209
Rep Power: 18
immortality is on a distinguished road
thanks for your efforts dear Bruno, I found a simple trick,I change the figure to a small size,a size around the width of a A4 paper and because legend size is fixed, it changes to a rational size respect to other parts of the figure and everything turns fine only the distance between plots(when draw some of plots in one figure) become less than before,but its not bad,because the results seems coincide together and they will say what a good validation has done I'm kidding you,the validation is OK itself
wyldckat likes this.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
energy changing associated with mass changing Martin duan FLUENT 0 August 6, 2011 12:42
[ICEM] Help with fixing imported IGES model siw ANSYS Meshing & Geometry 24 August 24, 2010 11:22
changing legend in FLUENT ak6g08 FLUENT 3 February 10, 2010 13:26
Changing Display Legend from exp to float PHX FLUENT 1 May 30, 2009 18:34


All times are GMT -4. The time now is 13:08.