question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

font size of labels in 3D scalarbar

See original GitHub issue

Hi @marcomusy I couldn’t find an argument for specifying the font size in 3D scalarbar

For instance, in this example here https://github.com/marcomusy/vedo/issues/182#issuecomment-704532335 I would like to increase the size of the fonts of nlabels in the colorbar.

nx_pts.addScalarBar3D(title='\mu - parameter',
                      titleFont='VictorMono',
                      labelFont='Quikhand',
                      #aboveText='above 1',
                      c='white')

Could you please suggest how this can be done?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
RubendeBruincommented, Nov 7, 2020

For the second part of you question:

You can provide a camera (dictionary) in the show method.

camera = dict()
camera['viewup'] = [0, 0, 1]
camera['pos'] = camera_pos
camera['focalPoint'] = lookat
plt.show(......, camera=camera).screeenshot('img.png')
1reaction
marcomusycommented, Nov 7, 2020

Also, if you have multiple renderers (I see you have at=..) you can postpone the screenshot to the end with plt.screenshot('img.png')

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change the font size of the title of the scalar bar in SlicerRT ...
I have tried to change the title's font size of the scalar bar actor, but it didn't change ... Make it smaller, both...
Read more >
How do I change the font size of ticks of ... - Stack Overflow
You can change the tick size using: font_size = 14 # Adjust as appropriate. cb.ax.tick_params(labelsize=font_size).
Read more >
How to Set Tick Labels Font Size in Matplotlib? - GeeksforGeeks
In this article, we will learn how to change (increase/decrease) the font size of tick label of a plot in matplotlib.
Read more >
Change font size for the axes labels in 3D viewer
Hello, When I turn on global axes or select a volume, the labels are shown huge. ... Change font size for the axes...
Read more >
How do I change the font size of ticks of ... - Tutorialspoint
Initialize a variable for fontsize to change the tick size of the colorbar. Use axis tick_params() method to set the tick size of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found