CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Changing the legend sizes

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By wyldckat
  • 2 Post By immortality

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 3, 2014, 09:45
Default Changing the legend sizes
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 19:29
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Ehsan,

Quoting myself from http://www.cfd-online.com/Forums/ope...tml#post451931 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: http://www.cfd-online.com/Forums/ope...tml#post452288 - 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, 04:54
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 07:57
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 12:57
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 17:06
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 18:52
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 191 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, 16:51
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 17:06. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   February 1, 2014, 17:24
Default
  #9
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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 and sourav90 like 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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
loading issue libraries:libsimpleFunctionObjects.so libsimpleSwakFunctionObjects.so immortality OpenFOAM Pre-Processing 15 April 7, 2024 12:35
CFD post cannot load results-Error appeared? mariam.sara ANSYS 9 September 17, 2018 15:23
[PyFoam] Problems with the new PyFoam release zfaraday OpenFOAM Community Contributions 13 December 9, 2014 18:58
[PyFoam] having problems with pyfoam Installation vitorspadetoventurin OpenFOAM Community Contributions 3 December 2, 2014 07:18
changing legend in FLUENT ak6g08 FLUENT 3 February 10, 2010 12:26


All times are GMT -4. The time now is 03:33.