6
$\begingroup$

Bug introduced in 12.0 and persisting in 12.1.1

I want to change the plot markers of the data points in QuantilePlot. This seems pretty straightforward:

QuantilePlot[
                RandomVariate[NormalDistribution[0, 1], 32], NormalDistribution[mu, sigma],
                ReferenceLineStyle -> Directive[Red, Dashing[{Large}]], PlotMarkers -> {"\[EmptyCircle]"}
            ] 

However we can see that we get a "Null" plot marker at either end of the reference line: enter image description here

Is there a specific command required in QuantilePlot to customise the plot markers for the data points?

$\endgroup$
  • 1
    $\begingroup$ Please submit a bug report to Wolfram Tech Support $\endgroup$ – Bob Hanlon Oct 31 at 1:02
5
$\begingroup$

It seems like a bug.

A work-around: Post-process to remove the unwanted Nulls:

{mu, sigma} = {1, 2};

SeedRandom[1]

qp = QuantilePlot[RandomVariate[NormalDistribution[0, 1], 32], 
 NormalDistribution[mu, sigma], 
 ReferenceLineStyle -> Directive[Red, Dashing[{Large}]], 
 PlotMarkers -> {"○"}];

qp/. Inset[Style[Null,___],___] -> {}

enter image description here

Note: The issue does not arise in Version 11.3.0.

| improve this answer | |
$\endgroup$
  • $\begingroup$ Thanks for the work around. $\endgroup$ – Q.P. Oct 30 at 23:28
  • $\begingroup$ Interesting that the problem isn't present in 11.3.0, I'm using 12.1.1.0. $\endgroup$ – Q.P. Oct 30 at 23:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.