Morpho-lang / morpho

The Morpho language 🦋. Morpho is a small embeddable language for scientific computing applications.
MIT License
33 stars 11 forks source link

Colormap limits for `plotfield` #202

Closed joshichaitanya3 closed 1 year ago

joshichaitanya3 commented 1 year ago

This small PR adds the ability to set colormap limits to plotfield, using optional cmin and cmax arguments, e.g.

Show(plotfield(f, grade=2, style="interpolate", cmin=0.025, cmax=0.075))

Documentation and an example are added.

softmattertheory commented 1 year ago

Thanks so much for this contribution to Morpho, @joshichaitanya3! I've checked it out and everything looks good.