Hi, thanks for your request!
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} \usepackage{pgfplots} \usepgfplotslibrary{polar} \begin{document} \begin{tikzpicture} \begin{polaraxis}[ x coord trafo/.code=\pgfmathparse{-#1}, y coord trafo/.code=\pgfmathparse{-#1}, y coord inv trafo/.code=\pgfmathparse{-30+#1}, ] \addplot table{ 0 00 -1 00 -2 -01 -3 -02 -4 -04 -5 -07 -337 -22 -338 -24 -339 -30 -340 -30 -357 -02 -358 -01 -359 00 }; \end{polaraxis} \end{tikzpicture} \end{document} I have attached the output of this run as png.Perhaps you can this as starting point to derive a suitable transformation. The inverse transformation is *only* used to generate tick numbers, so it might not be that important (because you could specify tick labels and positions explicitly).
Best regards Christian Am 09.01.2012 14:06, schrieb Augereau Béatrice:
Hi, I am trying to set the polaraxis environment to perform an antenna radiation pattern graphic. The data are in degree and dB (so the y range is -30:0). I did that with theses gnuplot code : set polar set angle degrees set size square set grid polar unset key set trange [-pi:pi] set rrange [-30:0] set yrange [-30:30] set xrange [-30:30] set xtics axis nomirror unset ytics unset border # {\312} degree symbol in postscript set label "0{\312}" at 27,1 set label rotate by 30 "30{\312}" at 22,14 set label rotate by 60 "60{\312}" at 12,23 ... set label rotate by -30 "-30{\312}" at 22.5,-12 set term postscript eps enhanced mono size 8cm,8cm "Helvetica" 11 set output "graphic.eps" plot "radiation_pattern.dat" w l lw 2 The coordinates are in a file with the index 0 is the x (degree) and the index 1 is the y (radius) and are like this : 0 00 -1 00 -2 -01 -3 -02 -4 -04 -5 -07 ... -337 -22 -338 -24 -339 -30 -340 -30 ... -357 -02 -358 -01 -359 00 Do you think it's possible to plot a such graphic with pgfplots and how to do this ? Thanks, Béatrice. ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Pgfplots-features mailing list Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features
<<attachment: P.png>>
------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________ Pgfplots-features mailing list Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features