Skip to content
Discussion options

You must be logged in to vote

Hi @fivetaibin,

can you verify, that this problem does not exist in 2d plots? Can you also show me, what the structural frame (geo_model.structural_frame) looks like? I am fairly certain, that this is a pyvista limitation, as they allow only one of three basic fonts in the legend (doc#1, docs#2). There was another similar issue discussed on pyvista already.

My suggestion how to solve this, is to

  1. create an image of the legend in matplotlib (you can also add custom fonts to matplotlib, example)
  2. toggle legend in gpv.plot_3d()
  3. return the pvvista object from gpv.plot_3d, add figure as a chart (example)
plotter = gpv.plot_3d(geo_model, legend=False, show=False) # store the pyvista plotter but…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@fivetaibin
Comment options

@NilsChudalla
Comment options

Answer selected by NilsChudalla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants