other:python:matplotlib_by_jyp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
other:python:matplotlib_by_jyp [2021/02/26 12:56] – More link updates jypeter | other:python:matplotlib_by_jyp [2021/05/11 17:12] – [Useful matplotlib reference pages] added tick formatters jypeter | ||
---|---|---|---|
Line 124: | Line 124: | ||
* [[https:// | * [[https:// | ||
* Trick needs to be used with '' | * Trick needs to be used with '' | ||
- | * Major (and minor) **tick marks location**: '' | + | * Major (and minor) **tick marks location**: '' |
* Use an empty list if you don't want tick marks: '' | * Use an empty list if you don't want tick marks: '' | ||
- | * **Tick labels** | + | * **Tick labels**: '' |
- | * '' | + | * If you do not specify labels, the //default labels// will just be the values specifying the ticks' |
+ | * '' | ||
+ | * The default numerical labels may be too long, due to numerical approximations. You can try to explicitly round the values, or generate correct label strings from the values\\ < | ||
+ | >>> | ||
+ | [0.0, 0.2, 0.4, 0.6000000000000001, | ||
+ | >>> | ||
+ | [0.0, 0.2, 0.4, 0.6, 0.8] | ||
+ | >>> | ||
+ | >>> | ||
+ | [' | ||
+ | >>> | ||
+ | >>> | ||
+ | >>> | ||
+ | [' | ||
+ | </ | ||
+ | * You can also use fancy [[https:// | ||
* Many more options for ticks, labels, orientation, | * Many more options for ticks, labels, orientation, | ||
* **Grid lines**: | * **Grid lines**: |
other/python/matplotlib_by_jyp.txt · Last modified: 2023/10/26 10:39 by jypeter