12 Jan 2012 17:42

## Re: [pgfplots-features] polaraxis with negative domain (y radius)

Hi,

To be precise my goal is to obtain a graphic like the one in attached
file (test.pdf) which results from gnuplot with the tikz terminal and
the complete data (in attached file too). I dislike this solution
because I have to place direction labels by hand and they're useful for
one graphic size. That's why I want to find a solution with pgfplots. Do
you think it's possible ?

Best regards,

Béatrice.

Hi,

I am not completely sure what you expect... I understand that you want
polar axes, and from your gnuplot example I see that the origin should
have y=-30 and the outermost line 0. If I take you data and provide it
to gnuplot as such, it also seems to provide a similar output as
pgfplots - but gnuplot seems to have it rotated somehow.

Nevertheless, the label transformations seem to be possible by means of
custom transformations, perhaps

\documentclass{article}



13 Jan 2012 06:24

### Re: [pgfplots-features] polaraxis with negative domain (y radius)

Hi Béatrice,

in order to shift the coordinates into the positive domain, you can use "y coord trafo/.code=\pgfmathparse{#1+30}". In order for PGFplots to use the original coordinates for the labels, simply specify the inverse transformation as a shift back into the negative: "y coord inv trafo/.code=\pgfmathparse{#1-30}". To let the x labels go from -180 to +180, you could just set "xmin=-180,xmax=180". This will, however flip the y axis to the left hand side of the plot, and the "-180/+180" coordinate will be printed twice. For better control over the tick labels, you can set "xtick={0,30,...,360}, xticklabels={0,30,...,180,-150,-120,...,0}". This tells PGFplots to generate tick marks at all position starting from 0, going up in increments of 30, ending at 360. The tick labels start at 0, go up in increments of 30 until they reach 180, then start again at -150, going up in increments of 30, ending at 0.

Here's the complete example, a PDF of the output is attached.

Jürnjakob

\documentclass{article}

\usepackage{pgfplots}

\usepgfplotslibrary{polar}

\begin{document}

\begin{tikzpicture}

\begin{polaraxis}[

xtick={0,30,...,360},

xticklabels={0,30,...,180,-150,-120,...,0},

y coord trafo/.code=\pgfmathparse{#1+30},

y coord inv trafo/.code=\pgfmathparse{#1-30}

]

\addplot [no markers, thick] table{data} \closedcycle;

\end{polaraxis}

\end{tikzpicture}

\end{document}

2012/1/13 Augereau Béatrice
Hi,

To be precise my goal is to obtain a graphic like the one in attached
file (test.pdf) which results from gnuplot with the tikz terminal and
the complete data (in attached file too). I dislike this solution
because I have to place direction labels by hand and they're useful for
one graphic size. That's why I want to find a solution with pgfplots. Do
you think it's possible ?

Best regards,

Béatrice.

Attachment (polarplot.pdf): application/pdf, 21 KiB
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save \$400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@...
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

31 Mar 2012 22:29

### I have some troubles with error bars


Hi everyone!!

I've been tried to plot my thesis data with error bars but i got this:

"! Package pgfkeys Error: I do not know the key '/tikz/error bars/mark repeat' a
nd I am going to ignore it. Perhaps you misspelled it.
See the pgfkeys package documentation for explanation."

maybe I need some package, but I'm not sure, please I'll be very greatful with

Best Regards

------------------------------------------------------------------------------
This SF email is sponsosred by:
http://p.sf.net/sfu/sfd2d-msazure

1 Apr 2012 19:53

### Re: I have some troubles with error bars

Hi Matias,

thanks for the report.

This happens if one uses the key list 'error bars/.cd,   mark repeat=4' .

A solution would be to write 'mark repeat=4, error bars/.cd'  -- it is
because 'error bars/.cd'  sort of "switches the key path" such that only
error-bar related keys can be set.

If you say that you never ever used such a key sequence then I would be
interested in the source code of the offending figure - preferrably as
minimal working example.

Best regards

Christian

Am 31.03.2012 22:29, schrieb Matias:
> Hi everyone!!
>
>
> I've been tried to plot my thesis data with error bars but i got this:
>
> "! Package pgfkeys Error: I do not know the key '/tikz/error bars/mark repeat' a
> nd I am going to ignore it. Perhaps you misspelled it.
> See the pgfkeys package documentation for explanation."
>
> maybe I need some package, but I'm not sure, please I'll be very greatful with
>
>
> Best Regards
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by: