hpgem/nanomesh

2D mesh plotting: too many labels

stefsmeets opened this issue · 2 comments

One point of feedback, with many different regions the labeling/coloring will basically become illegible. A possible solution is to plot the region numbers instead of the region markers. That way you can instantly see which region has which number, and you can use colors to just make the boundaries clear.

Zones

Originally posted by @Laar in #204 (comment)

Possible options:

  • Do not call plt.legend() inside the method (i.e. make it the responsibility of the user)
  • Add floating labels to plot
  • Legend with field names only
  • Add legend parameter with different options: ('off', 'fields', 'all', 'floating')
  • Separate function in mpl submodule to add floating labels to plot

With region markers:

image

With cell data (line mesh):

image