Graphics, Figures & TablesAn Interesting Way to Generate Graphics

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
rupertapplin
Posts: 3
Joined: Wed Dec 30, 2015 9:24 pm

An Interesting Way to Generate Graphics

Post by rupertapplin »

Hi,
I'm not sure if this is the best place for this, however I've been experimenting with TiKZ for the last few months working on a circular calendar, somewhat inspired by the very nicehttp://anaptar.com/ and https://circular-calendar.com that are commercially available.

My approach has been a bit different, hence sharing this, I've used a UNIX shell script to parse relevant data and to generate the calendar dynamically - with reading data from .csv files for information being shown, then written this out to a text file for converting to PDF via tex2pdf.

The final calendar is attached, if you're interested in the code, plus the configuration data, you can grab it from here: https://drive.google.com/open?id=0B8pE3 ... lhGemRESHM
w2.jpg
w2.jpg (306.87 KiB) Viewed 1733 times
The code is free to use/modify/change but would appreciate that you give credit if you use it :-)

I acknowledge that the way I've used the shell script to generate the tex file makes for pretty ugly code (and that my original shell script isn't perfect coding) but the result seems pretty reasonable.

Any comments or feedback much appreciated.

Regards
Rupert

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

rupertapplin
Posts: 3
Joined: Wed Dec 30, 2015 9:24 pm

Re: An Interesting Way to Generate Graphics

Post by rupertapplin »

Oh! And what you're seeing in the centre, working out is:

Firstly average windspeed for that day over the last 10 years

Then in the bars, minimum and maximum recorded temperature for the day in the last 10 years, then in the blue and red lines a weighted average daily maximum and minimum temperatures (over the last 10 years again)

:-)
Post Reply