User Tools

Site Tools


other:python:jyp_steps

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
other:python:jyp_steps [2019/06/17 09:21]
jypeter [Useful matplotlib reference pages] Added 'title' functions
other:python:jyp_steps [2019/06/18 09:56]
jypeter [Useful matplotlib reference pages] Started adding marker attributes for plot/scatter
Line 255: Line 255:
   * [[https://​matplotlib.org/​api/​markers_api.html|marker types]]   * [[https://​matplotlib.org/​api/​markers_api.html|marker types]]
     * ''​fillstyle'':​ ''​full'',​ ''​None'',​ [[https://​matplotlib.org/​gallery/​lines_bars_and_markers/​marker_fillstyle_reference.html|other]]     * ''​fillstyle'':​ ''​full'',​ ''​None'',​ [[https://​matplotlib.org/​gallery/​lines_bars_and_markers/​marker_fillstyle_reference.html|other]]
-    * Other attributes: ''​markersize'',​ ''​markerfacecolor''​ (and ''​markerfacecoloralt''​ for dual color markers), ''​markeredgecolor'',​ ''​markeredgewidth''​ +    * Other attributes: 
-  * [[https://​matplotlib.org/​api/​colors_api.html|colors]]+      * ''​plot'':​ ''​fmt''​ (sets **marker type and colors for all markers**), ​''​markersize'',​ ''​markerfacecolor''​ (and ''​markerfacecoloralt''​ for dual color markers), ''​markeredgecolor'',​ ''​markeredgewidth''​ 
 +      * ''​scatter'':​ ''​marker''​ (marker type), ''​c''​ (color) 
 +  * [[https://​matplotlib.org/​api/​colors_api.html|colors]] ​and colormaps
     * [[https://​matplotlib.org/​gallery/​color/​color_demo.html|color demo]]     * [[https://​matplotlib.org/​gallery/​color/​color_demo.html|color demo]]
     * [[https://​matplotlib.org/​examples/​color/​named_colors.html|named colors]]     * [[https://​matplotlib.org/​examples/​color/​named_colors.html|named colors]]
 +    * Reverting the colors: add ''​_r''​ at the end of the colormap name
 +    * Special colormap colors
 +      * ''​cmap.set_bad(color='​k'​)'':​ color to be used for masked values
 +      * ''​cmap.set_over(color='​k'​)'':​ color to be used for high out-of-range values
 +      * ''​cmap.set_under(color='​k'​)'':​ color to be used for low out-of-range values
   * [[https://​matplotlib.org/​api/​_as_gen/​matplotlib.pyplot.text.html|text(...)]] and [[https://​matplotlib.org/​tutorials/​text/​annotations.html|annotations]]   * [[https://​matplotlib.org/​api/​_as_gen/​matplotlib.pyplot.text.html|text(...)]] and [[https://​matplotlib.org/​tutorials/​text/​annotations.html|annotations]]
     * Some titles:     * Some titles:
other/python/jyp_steps.txt · Last modified: 2024/03/07 10:15 by jypeter