Skip to main content
Share Your Experience: Take the 2024 Developer Survey
13 votes

Shading a region between two polar curves

You could use intersection segments: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.15}% <- added!! \usepgfplotslibrary{fillbetween}% <- changed \begin{document} \begin{...
esdd's user avatar
  • 85.9k
11 votes

How to draw polar grid system around another grid for object in TikZ 3D?

3D is really hard to achieve properly, I cheated too. I'm looking through Section 96 (pg. 978) of the manual that describes 3d polar systems. It has a latitude/longitude system defined, but the ...
Huang_d's user avatar
  • 1,797
9 votes

How to draw polar grid system around another grid for object in TikZ 3D?

TikZ is inherently 2D. You can perhaps do something like the following, but on the other hand it might not be good enough for you. Note that I edited the image with Gimp to remove the white ...
Torbjørn T.'s user avatar
8 votes

How to draw polar grid system around another grid for object in TikZ 3D?

I have added this as a new answer since the approach is different from my previous work. 3D is possible and it is surprisingly easy. Well, it is still fake by any means (occlusion for example still ...
7 votes
Accepted

pgfplot with polar axis with log scale

There is no predefined thing. You have to convert it by hand. \documentclass{article} \usepackage{pgfplots} \usepgfplotslibrary{polar} \newcommand\subticks{0.30103,0.47712125,0.60205999,0.69897, 0....
Henri Menke's user avatar
7 votes

How can I draw a curved surface in a polar coordinate system?

So all you really need is a couple of \foreach loops. Note that lines of latitude do not match rotated arcs through the origin (great circle routes). \documentclass{article} \usepackage{verbatim} \...
John Kormylo's user avatar
  • 80.6k
7 votes
Accepted

Tikz/pgfplots shade to origin (polar)

Since you know the coordinates, just use fill. \fill[blue,opacity=0.4] (o) -- (a) -- (b); Note that I have the named the coordinates. See the full code: \documentclass[border=5pt]{standalone} \...
nidhin's user avatar
  • 7,942
6 votes
Accepted

Filled circular sections in polar axis, tikz

as pure tikz picture: \documentclass[tikz, border=10pt]{standalone} \usetikzlibrary{backgrounds} \begin{document} \begin{tikzpicture} % axis \draw[->] (-3,0.0) -- (3.5,0) node[below left] {$x$};...
Zarko's user avatar
  • 298k
6 votes

PGFPlots: Background color for polar plot

This is a way that can be adjusted in colors and the "blur" by you: \documentclass{standalone} \usepackage{pgfplots} \usepackage{tikz} \pgfplotsset{compat=1.13} \usepgfplotslibrary{polar} \...
koleygr's user avatar
  • 20.1k
5 votes
Accepted

LATEX Removing part of shaded area in polar plot

This solution does not use the even odd rule option, just exploits the fact that you know the intersection points \documentclass[width=5cm, height=5cm, border=2mm]{standalone} \usepackage{tikz} \...
caverac's user avatar
  • 7,931
5 votes

Shading a region between two polar curves

I found a solution, maybe not the optimal one, but it allows to generalize. In (axis cs: {(1.5)*cos(\x)}, {(1.5)*sin(\x)}) in the frame inside scope one can substitude any polar equation in the form r(...
user35603's user avatar
  • 307
5 votes
Accepted

xtick in polaraxis useless

With your code I got the warning Package pgfplots Warning: You have an axis with empty range (in direction ). Re placing it with a default range and clearing all plots. So if there is no plot ...
esdd's user avatar
  • 85.9k
5 votes

Coloring petals of a polar curve

You can play with the domains. I made two for you: \documentclass{article} \usepackage{pgfplots} \usepgfplotslibrary{polar} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \...
mickep's user avatar
  • 9,050
5 votes

Merging 2 hemispheres using tikz

I'm not sure what you want to achieve exactly, but a simple sketch for your first figure (using hemispheres) can be drawn with the help of TikZ libraries 3d and perspective in isometric view. You'll ...
Juan Castaño's user avatar
5 votes
Accepted

Error bars in polaraxis plot

You can use a quiver plot like this: \documentclass[tikz, border=1cm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepackage{pgfplotstable} \usepgfplotslibrary{polar} \begin{document} ...
hpekristiansen's user avatar
4 votes

Fill Between with Multiple Tikzpicture

Apparently the problem is caused by the polaraxis when filling between the two plots. Here is my solution for your problem: \documentclass{article} \usepackage{pgfplots} \usepgfplotslibrary{...
Sina Ahmadi's user avatar
4 votes
Accepted

How to draw this z-grid graph of constant damping factors and natural frequencies pt2

This seems to do the trick... Before you ask : there is one line missing, that for zeta=1. I suggest you draw it by hand. I am not sure about the values of zeta in the lower part, maybe 1/0.9, 1/0....
marsupilam's user avatar
  • 6,393
4 votes
Accepted

pgfplots - Nodes on polar curve r=1+cos(x)

By the way, an even more concise way of doing what you want is to rely on another addplot with only marks, mark=*, black, and samples=36 options, as follows. \documentclass[margin=1cm]{standalone} \...
Enlico's user avatar
  • 2,612
4 votes
Accepted

Draw multiple polar graphs in different positions on a common coordination system - Tikz

You could move the loops outside the polaraxis environment, and use the at parameter for the axis to move the axes around. The outer axis and ticklabels has to be done manually though. For example: \...
Torbjørn T.'s user avatar
4 votes

Tikz: Labeling around a circle and drawing concentring arrows

Another possibility might be to set anchor=\ang+180 and use a circle node. For the length, you can multiply by 1cm, i.e. length=\radiusarrow*1cm. Not sure yet about #3. \documentclass{standalone} \...
Torbjørn T.'s user avatar
4 votes

Building a 2D Polar Histogram with PGFPlots

The answer below uses the wheelchart package, which I wrote. There is a for loop which loops over the slices. Here, each slice has 3 numbers which denote the angle, the radius and the value. Each ...
matexmatics's user avatar
  • 5,009
4 votes
Accepted

Polar Axes Radians

\documentclass[border=1cm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \usepgfplotslibrary{polar} \pgfplotsset{my style polar/.append style={xticklabels={,, $\frac{\pi}{6}$, $\frac{\pi}...
hpekristiansen's user avatar
4 votes
Accepted

Coloring petals of a polar curve

An alternative in Metapost. The idea is essentially the same as @mickep's answer. Make the complete rose curve, then pick out a suitable subpath of the domain to get a petal. \documentclass[border=...
Thruston's user avatar
  • 42.5k
3 votes

Shading a region between two polar curves

An emergency-purpose-only solution with PSTricks. \documentclass[pstricks,border=1cm]{standalone} \usepackage{pst-plot} \begin{document} \begin{pspicture}[algebraic,polarplot,plotpoints=100](-3,-3)(...
Display Name's user avatar
  • 47.1k
3 votes

Shading a region between two polar curves

A way of doing it with MetaPost, for whom it may interest. Edit My first attempt made use of the otherwise very handy buildcycle macro, but I've just realized that filling the cardioid and then ...
Franck Pastor's user avatar
3 votes
Accepted

Can one generate a 'boxed polar plot' with pgfplots and polaraxis?

pgfplots supports no boxed polar plots of this sort. You can merely reduce the plotted range using xmin and xmax. \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{polar} \...
Christian Feuersänger's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible