I have coloured a parametric plot with using ColorFunction
, which looks fine in Mathematica (I'm on M13 ):
ColourList = {Purple, Blue, Green, Orange, Red};
TestImage =
Show[
{
ParametricPlot[
{Exp[-t/3 ] Sin[2 \[Pi] \[Nu]0 t], (-1/3 Exp[-t/3 ]Cos[2 \[Pi] \[Nu]0 t] / (2 \[Pi] \[Nu]0))}, {t, 0, tf},
PlotStyle->Thick, ColorFunction->Function[{x, y}, Blend[ColourList, Sqrt[x^2 + y^2] / 1]], ColorFunctionScaling->False
]
},
FrameLabel->{"X", "Y"}, FrameTicksStyle->Directive[FontOpacity->0, FontSize->1/1000], Axes->False, ImageSize->Automatic->300, PlotRange->{All, All}
]
However, when I export it with
Export["TestImage.pdf", TestImage, ImageResolution->100]
The plot exports with very poor resolution:
If I remove the ColourFunction
code, I get:
Here the image exports with the expected and correct resolution. Note how the image resolution affects not only the actual plot, but also affects the the plot label.
Does anyone know why this happens, and a work-around/fix? My guess would be that ColorFunction
must have some sort of default resolution which is then being attributed to the entire plot, but I could not see any mention in the documentation.
\[Nu]0
andtf
. The code you have included is not evaluating. $\endgroup$