This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Fenics Plot Font Size

+2 votes

I like the figure produced by the built-in plot function pretty much. It looks way better than Paraview, for me.

The only small issue is that the font size of colour bar can't be adjusted. I wonder if anyone knows if there is access to adjust the font size.

Thanks

asked Mar 28, 2014 by wmy32552316wmy FEniCS Novice (230 points)

1 Answer

+1 vote

Hi, it seems that the font size is hardcoded. Have a look here.

answered Apr 2, 2014 by MiroK FEniCS Expert (80,920 points)

Hi Mirok,
Thanks for your answer, it is very helpful.
Do we have any access to modify the cpp code in Fenics.
My Fenics is under Ubuntu.

You could obtain the source code of DOLFIN from bitbucket and compile your own version with the font size you wish. Or perhaps register a feature request so that font size becomes a parameter of the plot in the official version. Anyways, for you could also try Paraview and change the colormap to Blue to Red HSV - then the plots look similar to those from Fenics.

...