Some plotting functions produce a Graphics with a "ScalingFunctions" suboption within the Method option. What does "ScalingFunction" do and how do I use it? Can I use it to transform arbitrary graphics in a non-linear way?
Example:
g = RegionPlot[x^2 + y^2 < 1, {x, -2, 2}, {y, -2, 2}]; Options[g, Method] (* {Method -> {"ScalingFunctions" -> None, "TransparentPolygonMesh" -> True, "AxesInFront" -> True}} *) Note:
This doesn't appear to be the same thing as ScalingFunctions.
"ScalingFunctions" -> {# + 1 &, # + 1 &}andDynamic@MousePosition["Graphics"]. It affects onlyyaxis though. $\endgroup$MousePosition.Graphics[{Line[{{0, 0}, {1, 1}}], Line[{{1, 1}, {2, 2}}]}, Frame -> True, Method -> {"ScalingFunctions" -> {# + 1 &, # + 1 &}}]$\endgroup$RegionPlot[x^2 + y^2 < 1, {x, -2, 2}, {y, -2, 2}, Method -> {"ScalingFunctions" -> {# + 1 &, # + 1 &}}]$\endgroup$RegionPlotand not toGraphics. Some of these plotting functions reinterpret options, e.g.DensityPlot[..., PlotRange->...]andShow[DensityPlot[...], PlotRange -> ...]behave differently. Could it be that this in fact is a RegionPlot-specific option and doesn't even make sense forGraphics? Maybe it's retained inGraphicsby mistake. $\endgroup$Graphicsignores syntax thatRegionPlotcomplains about (third function, different slot #2). $\endgroup$