joscojon
(Jon Joseph)
1
Given a simple Plot[x, {x, -1, 1} GridLines->Automatic]
is there a way to apply transformation to the plot as well as the GridLines? For example
Plot[x, {x, -1, 1}, GridLines->Automatic]/.L_Line:>GeometricTransformation[L, ShearingTransform[Pi/4, {1,0}, {0,1}]]
will transform the plot but not the GridLines. Can the GridLines also be transformed?
Here is an attempt with FullGraphics, a very old function:
fg = FullGraphics[Plot[x, {x, -1, 1},
GridLines -> Automatic]]
Graphics[GeometricTransformation[fg[[1]],
ShearingTransform[Pi/4, {1, 0}, {0, 1}]]]
Try this:
p = Plot[x, {x, -1, 1}, GridLines -> Automatic];
ImageForwardTransformation[p,ShearingTransform[Pi/4,{1,0},{0,1}],PlotRange->All]
joscojon
(Jon Joseph)
4
Thanks to both. Never heard of either of those functions.