Monday, April 19, 2021

plotting parallel categories – part 3

brief description: to create a comparative line plot of famous architects using multiple variables – year of birth, year in which one seminal work was completed and year of death. a plot showing progression of architecture career.

result: below images show initial results.
i started by learning how to manipulate texts/annotations in matplotlib. 

three points (x,y coordinates) are generated randomly, plotted with text

python code:


i applied the same logic to below plots of ‘architecture career’.
the point list is the data of the years (x,y = 0, 1880). some issues encountered are
  • counting of points correctly for line plotting
  • understanding of data hierarchy in excel and python
see high-res > image 1

below image shows the final result.
  • plotting of points and lines in correct order
  • adding of texts
  • changing colour of lines, which still need improvement
see high-res > image 2

python code:


references
texts

https://matplotlib.org/tutorials/text/text_intro.html#sphx-glr-tutorials-text-text-intro-py
https://matplotlib.org/tutorials/text/text_props.html#sphx-glr-tutorials-text-text-props-py
https://matplotlib.org/3.1.1/gallery/text_labels_and_annotations/annotation_demo.html

colors
https://matplotlib.org/3.1.0/gallery/color/named_colors.html
https://matplotlib.org/tutorials/colors/colormap-manipulation.html
https://matplotlib.org/tutorials/colors/colormaps.html
https://stackoverflow.com/questions/38208700/matplotlib-plot-lines-with-colors-through-colormap/38219022

No comments:

Post a Comment