color bar

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
User avatar
bernd
Posts: 8046
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

color bar

Postby bernd » Mon Jul 08, 2019 12:48 pm

Attached a screen of color bar from mesh curvature plot. FEM post processing does make heavy usage of this color bar. I am curious if it is possible to change the font size of the color bar and some how change the place (like the view cube).

AFAIK there is no python api to change this color bar?

screen.PNG
screen.PNG (133.78 KiB) Viewed 200 times
Jee-Bee
Posts: 1919
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: color bar

Postby Jee-Bee » Mon Jul 08, 2019 2:49 pm

If there comes a change to the color bar... maybe also some properties to change the upper / lower limit of the color bar.
What also could be handy if the break limit is set to some limit that all above that limit can set to another color
User avatar
bernd
Posts: 8046
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: color bar

Postby bernd » Mon Jul 08, 2019 3:48 pm

this is possible! just double click on the color bar.
Jee-Bee
Posts: 1919
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: color bar

Postby Jee-Bee » Mon Jul 08, 2019 5:51 pm

I shall try it... Last time trying is years back allready :lol:
wmayer
Site Admin
Posts: 14451
Joined: Thu Feb 19, 2009 10:32 am

Re: color bar

Postby wmayer » Thu Jul 11, 2019 2:10 pm

Color bar is implemented here:
https://github.com/FreeCAD/FreeCAD/blob ... lorBar.cpp
https://github.com/FreeCAD/FreeCAD/blob ... adient.cpp
https://github.com/FreeCAD/FreeCAD/blob ... Legend.cpp
I am curious if it is possible to change the font size of the color bar
SoText2 uses the standard font size:
https://github.com/FreeCAD/FreeCAD/blob ... nt.cpp#L84
some how change the place
This is not possible.
AFAIK there is no python api to change this color bar?
No Python API is available.
User avatar
Kunda1
Posts: 4812
Joined: Thu Jan 05, 2017 9:03 pm

Re: color bar

Postby Kunda1 » Thu Jul 11, 2019 2:38 pm

Create a Feature Request ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features