Questions tagged [polarplot]
Plots in polar coordinate
60
questions
39
votes
8answers
7k views
Creating a Polar Grid with Tikz
I am trying to recreate the following image using tikz:
So far, this is my code
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[>=latex]
\fill[fill=lightgray] ...
16
votes
3answers
410 views
PGFPlots: Background color for polar plot
I would like to draw a so called "skyplot" in PGFPlots. Skyplots display satellites with their positions over the visible sky. In addition, I would like to draw a background for some specific ...
16
votes
2answers
893 views
Fill in between polar curves
I am trying to fill in space between a pair of spiral curves in tikz. I have tried using the fillbetween library but it just shades in the whole spiral. Does anyone have a hint they could offer? ...
13
votes
4answers
2k views
How to draw polar grid system around another grid for object in TikZ 3D?
I am trying to put two polar planes/axes around an object (here a heart in Fig. 2) by TikZ/... translations and rotations for 3D phenomena.
I think the problem is to Translate and rotate the second ...
13
votes
2answers
3k views
How can I create a polar plot on a Cartesian grid?
I'm currently using tikzpicture and pgfplots to plot this polar function:
\documentclass{article}
\usepackage{pgfplots}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\begin{polaraxis}
\...
10
votes
4answers
784 views
Shading a region between two polar curves
I'm using Tikz and have two polar curves r=1.5+cos(t) and r=1.5. I would like to fill (shade) the area between curves (shown by an arrow on the picture). How can I do this? Maybe using \clip or ...
9
votes
3answers
678 views
Polar plots 1st quadrant
I'm trying to plot some polar vectors using PSTricks but I'm not able to only plot the first quadrant of a polar plot.
This is my current trivial code:
\begin{figure}[hbtp]
\begin{pspicture}(-5,-5)(...
8
votes
3answers
2k views
Drawing multiple circles on Tikz
I want to draw a unit circle with multiple circles with centred on (cos(x),sin(x)).
\begin{tikzpicture}
\draw (0,0) circle (2cm);
\coordinate (a) at (2;10);
\draw (a) circle (0.3cm);
\end{...
8
votes
1answer
525 views
Tikz plot polar equation with foreach
Im trying to animate a polar equation using beamer, i couldnt find anything related to my problem here or on Google so my last chance is to request some help. I tried to take out the domain command ...
8
votes
2answers
391 views
How to change \psaxes angle to match with data?
I'm able to draw radar chart using tex code mentioned below:
\documentclass[landscape,a3paper,11pt]{article}
\usepackage{pstricks-add}
\usepackage{pgfplots, pgfplotstable}
\begin{document}
\begin{...
7
votes
2answers
5k views
Polar plot using pgfplots/tikz
I would like to reproduce the figure below using pgfplots/tikz packages on Latex. I am sharing with you a .csv file to plot a similar figure. It is important to notice that y-axis are outside the plot ...
7
votes
1answer
2k views
Polar pgfplots radial axis tick labels
I want to overlay Cartesian axes on a polar plot. The vertical axis sits on top of the polar radial (horizontal) tick label. How can I move the tick label(s) so they are below the horizontal axis or ...
6
votes
2answers
133 views
Tikz/pgfplots shade to origin (polar)
I'm trying to shade in just one petal of a polar function. Specifically, I was wondering if there was a way to shade in the bounded region that lives between my two rays:
I've tried searching for ...
6
votes
1answer
638 views
How to add labels to polar plot / polar comb in polaraxis and show FULL coordinates?
In pgfplots, I am trying to:
for a first figure:
label 12 polar plots plotted on the bases of 12 tables (values given
in cartesian coordinates) without showing a legend but adding a label
directly ...
6
votes
1answer
95 views
Logarithmic polarplot with TikZ/pgfplot
I'd like to do a logarithmic polar plot like the one in Wikipedia Polar Plot.
I've come up with the following PGF Plot so far:
\documentclass[border=5mm]{standalone}
\usepackage{pgfplots}
\...
5
votes
1answer
537 views
PGFPlots polaraxis axis labels are swapped (or in the wrong place)
I have some problems with axis labels when using the polar axis, if I set the X and Y label they appear in the wrong place.
When using the polar axis;
x coordinate is the angle (azimuth, phi)
y ...
5
votes
1answer
163 views
xtick in polaraxis useless
As a followup question to my answer here, I have a problem with the polaraxis of pgfplots. When I try to define xtick, nothing changes compared to dropping the option.
MWE
\documentclass{standalone}
...
5
votes
1answer
172 views
Not getting the correct polar plot
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{3d,calc}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\draw[domain=0:2*3.14159265] plot (xy polar
cs:angle=\x r,radius={2 -...
4
votes
3answers
899 views
How to graph an implicit polar equation?
I need to graph the following implicit polar equation using Latex
I would be very thankful for any help. Thanks
4
votes
2answers
765 views
How to plot only some value of a table?
I want to plot only some values of an external tex value table, for example from the 3rd value to the 6th value. I could manually comment the non-wanted values but the table may often change and I don'...
4
votes
1answer
455 views
issue plotting polar data using tikz
I m having a trouble to plot properly a polar data file into a polar plot using TikZ, below the code. Thanks in advance for the help (I would rather avoid to use \begin{axis} in order to be consistent ...
4
votes
1answer
1k views
How to move axis multiplier in a polar plot in pgfplot
How can I move the axis multiplier in a polar plot? In the following MWE, the axis multiplier is over the ticks and prevent the plot to be nice and readable.
\documentclass[crop=true,border=2mm]{...
4
votes
1answer
107 views
LATEX Removing part of shaded area in polar plot
I've been working on creating the following picture using TikZ.
The following code is as far as I've gotten.
\documentclass[width=5cm, height=5cm, border=2mm]{standalone}
\usepackage{tikz}
\begin{...
4
votes
2answers
302 views
Polar coordinate axes
I am trying to create a set of polar coordinate axes using this code:
\documentclass[pstricks,preview,margin=0pt]{standalone}
\usepackage{pst-plot,graphicx}
\begin{document}
\psset{linecolor=black,...
3
votes
2answers
280 views
Polar plot with cartesian values, lack of angular precision in the integrated arctan2 calculation?
I noticed that for values close to 0° and 180° the angular values dramatically changes if the values are imported from cartesian data. Here the code (with cartesian coordinates plotted in polar with ...
3
votes
2answers
1k views
Negative y value in polar plot
I'm having some trouble with polar plots. I have to plot negative values, but without changing direction. I tried to set the ymin value to be negative, but it doesn't work.
\documentclass[10pt,border=...
3
votes
1answer
1k views
Tikz-Draw radii in specific angles within a circle using polar coordinates
I am trying to make a drawing using tikz. In this drawing, I put some shapes in specific angles. What I want to do is "highlight" those angles using simple dashed lines. My code is the following
\...
3
votes
1answer
97 views
Draw multiple polar graphs in different positions on a common coordination system - Tikz
I am trying to plot several polar graphs in a tikzpicture.
The idea is to plot the same function but for different parameters.
An idea of what I am trying to achieve can be seen below
Although I am ...
3
votes
1answer
374 views
Fill Between with Multiple Tikzpicture
I am using PGFPlots version 1.14 and PGF version 3.0.1a and am having a weird effect with fill between. The coloring for fill between is appearing in the subsequent graph, not in the graph it was ...
3
votes
1answer
163 views
How to draw this z-grid graph of constant damping factors and natural frequencies pt2
This question is building from the elegant solution given by marsupilam found here:
How to draw this z-grid graph of constant damping factors and natural frequencies
How to plot the other have of ...
3
votes
1answer
293 views
pgfplots - Nodes on polar curve r=1+cos(x)
I want to draw circles as node on polar curve r=1+cos(x) with equal intervals. I can draw one node on curve, say for 30 degree, using parametric equation of curve using code below.
\documentclass[...
3
votes
1answer
598 views
Pgfplots closes paths in polar plot
I'd like to create an antenna radiation pattern in the form of a polar plot like this one:
(image credits: C.A. Balanis; Antenna theory, analysis and design)
What I've done so far is the following ...
3
votes
1answer
1k views
tikz, pgfplots and polaraxis
I found a nice template for a polar graph 1 and I adjusted it as follows:
\documentclass[12pt]{standalone}
\usepackage[x11names]{xcolor}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\...
3
votes
1answer
260 views
Polar pgfplots diagram adds additional whitespace with units library loaded
When doing polar plots in pgfplots (v1.10) I get additional whitespace when loading the units library. How can I get rid of that?
I did not observe this before since it is related to the direction of ...
3
votes
1answer
127 views
PGFPlots fill color in polar plot from data set
My aim is to create a polar plot from a data set, where an additional data column defines the fill color radially out from the center. Can this be done in PGFPlots?
In the example below, I create a ...
3
votes
1answer
500 views
Tikz Polar Fill to Origin
I'm trying to shade under a polar graph. I'm using this code:
\documentclass{exam}
\usepackage{graphicx}
\usepackage{tikz}
\begin{document}
\begin{center}
\begin{tikzpicture}
\fill[fill=gray] plot[...
3
votes
0answers
394 views
Rotating polar pgfplot [closed]
I rotated my polar plot by 90 degree. To make sure, the y-Line stays at the 90 degree position I used
xmin=90,
xmax=450,
but now I need my xtick labels back from 0 to 330.
\documentclass[a4paper, ...
3
votes
0answers
226 views
PGFplots, polar plot, extrema of values and fill segmented area
i have some testdata and want to create a polar plot, divided into some segments (21-24, 31-35, 41-42, ...).
From the testdata i greate about 50 graphs (Var 1 ... Var x). Up to this everything works ...
2
votes
1answer
464 views
pgfplot with polar axis with log scale
Could it be possible to have a pgfplot plot the linear coordinate in log scale?
\begin{tikzpicture}
\begin{polaraxis}[xmin=0,xmax=45, xtick={0,45,90}, xticklabels={$0$, $\frac{\pi}{4}$, $\frac{\pi}{...
2
votes
1answer
685 views
How can I draw a curved surface in a polar coordinate system?
I'm fairly new to using TikZ and so far I've got a spherical coordinate system, and labelled the point P at which I want to draw a curved surface. A full sphere of unit radius, for example, would be a ...
2
votes
2answers
1k views
Drawing the limaçon, r=0.5+2cos(theta) in TeX [duplicate]
Could anyone tell me what I am doing wrong please. I am trying to only use the tikz package. My thought process is that;
r^2=x^2+y^2 and r=sqrt(x^2+y^2)
so using x=(a/2)+bcos(theta)+(a/2)cos(2theta) ...
2
votes
1answer
329 views
All but one ticklabel are showing up in polar plot
I have a problem using custom xticklabels in my polar plot. I need the exact xtick sequence specified by xticklabels but no matter what I do, the first label for 120° is not displayed.
\documentclass[...
2
votes
1answer
175 views
LATEX Tikz shading region between polar plots
I'm attempting to use just Tikz to shade in the region within the polar plot but outside of the internal circle as seen in the screenshot below...
I understand that pgf plots might be the better ...
2
votes
1answer
105 views
Polaraxis nonaligned negative yticklabel
I would like to plot a polar plot in dB scaling, in this case I have positive and negative values. Usually a negative radius is plotted in the opposite direction, but with the help of transforming the ...
2
votes
1answer
547 views
Reversing y axis in polaraxis plot
I'm trying to reverse the y axis of my polaraxis plot while keeping the zero towards east. This is supposed to produce a clockwise polar plot.
However, the tick anchors are not mirrored in the ...
2
votes
1answer
106 views
Clean solution to move yaxis in polar plot
I want to be able to plot the upper half of the attached polar plot (MWE), by setting xmin=0 and xmax=180. This, however, is non-trivial when I at the same time want to have the yaxis with labels and ...
2
votes
0answers
62 views
Rotate ytick after rotating polaraxis
I rotated a polaraxis 90 degree CCW.
\documentclass[a4paper, 11pt]{report}
\usepackage{pgfplots} %Plots direkt in LaTeX aus externen Dateien berechnen
\pgfplotsset{compat = newest} % Use the latest ...
2
votes
0answers
147 views
pgfplot draw background color as a polar function
I want to illustrate the path of a light beam refracted in the athmosphere. Using Matlab, i have calculated some numerical solutions to my differential equation. These solutions are in polar ...
2
votes
0answers
119 views
Polaraxis with error bars in pgfplots
Im trying to plot some values with error bars in polar coordinates. Here is my MWE
\begin{tikzpicture}
\begin{polaraxis}
\addplot+[only marks,mark size=1.5pt,error bars/.cd,y dir=both,y ...
1
vote
1answer
184 views
Filled circular sections in polar axis, tikz
I would like to draw and fill circular sections in a polar axis, with 0 deg in correspondence of the current vertical axis, as in the first example picture.
Unfortunately I couldn't find any similar ...