Plotting Coordinate Transformations in Matlab

1 reply · 2K views · last reply
Lizard
Messages
5
Reaction score
0
I was reading this article (https://www.nature.com/articles/srep40083) about designing a panoramic lens with transformation optics, and wanted to try to play around with modifying the coordinate transformations. I contacted one of the authors of the article, and she mentioned that she plotted the coordinate transformations in Matlab, creating this image (Figure 3 in the article):
Four polar grid plots (a) to (d) showing blue radial and curved grid lines inside a red circle, with a purple curve and a small black circle near the centre; angle labels run from 0 to ±π.

However, I can't seem to figure out how the authors made these graphs.

These were the equations used:
Equation (1) in cylindrical coordinates: r' = r, z' = z, and theta' = [(1 - tau) r/R0 + tau] theta, with the theta equation in brackets.


What is the process for plotting coordinate transformations like these? I'm new to Matlab and don't really know where to start.
 
Attachments
  • Four polar grid plots (a) to (d) showing blue radial and curved grid lines inside a red circle, with a purple curve and a small black circle near the centre; angle labels run from 0 to ±π.
    srep40083-f3.jpg
    49.9 KB · Views: 961
  • Equation (1) in cylindrical coordinates: r' = r, z' = z, and theta' = [(1 - tau) r/R0 + tau] theta, with the theta equation in brackets.
    srep40083-m1.gif
    1.3 KB · Views: 729
Given the fact that you can't do overlays on polar coordinate plots in Matlab, I suspect that the author wrote a custom plot routine or calculated the x-y coordinate pairs at a very fine scale and plotted the points annotating in cylindrical coordinates.