davidfokkema / artist

Artist makes beautiful plots
http://davidfokkema.github.io/artist/
GNU General Public License v3.0
12 stars 2 forks source link

Add polar plot #8

Closed 153957 closed 9 years ago

153957 commented 10 years ago

Add polar plot options.

Extras:

Todo:

153957 commented 10 years ago

Example of current output (Updated to c2fd7db): discrete_directions

153957 commented 9 years ago

Polar histograms!

polar_histogram

153957 commented 9 years ago

Setting x (phi) limits does not work properly. The limits work, but the axes are messed up. Probably related to the current method used for shifting the r-axis.

153957 commented 9 years ago

~~Currently I made it so that the last bin also connects to the start point. This works well when the bins go from 0 to 360, to get a fully connected line. However, if the last bin is 270 a straight line is drawn from that value to the first bin.~~ The first and last bin are only connected if (bin_edges[-1] % 360) == (bin_edges[0] % 360)..

davidfokkema commented 9 years ago

I'm impressed! Beautiful.

153957 commented 9 years ago

The \newlength introduced in 444b0e64678c to shift y ticks labels works well, except when multiple of these figures are included in the same document. A newlength can not be defined twice.

A similar issue is mentioned in this question: http://tex.stackexchange.com/a/184993

I tried adding \let\ytickshift\relax to to the script but then got an error that the polaraxis envoirnment was unknown (or undefined). Very strange..

The error can be seen by trying to make demo with 582e63c.

davidfokkema commented 9 years ago

The \ytickshift problem and the inconsistent xlabel placements are fixed!