8
$\begingroup$

Bug introduced in 12.0 and persisting in 13.2.0

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 -> {"○"}] 

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$
5
  • 2
    $\begingroup$ Please submit a bug report to Wolfram Tech Support $\endgroup$
    – Bob Hanlon
    Oct 31, 2020 at 1:02
  • $\begingroup$ @kglr 12.2 is not released yet. $\endgroup$
    – Szabolcs
    Dec 14, 2020 at 10:23
  • $\begingroup$ @Szabolcs, on Wolfram cloud $Version returns "12.2.0 for Linux x86 (64-bit) (November 16, 2020) ". Rolled back the edit. $\endgroup$
    – kglr
    Dec 14, 2020 at 10:32
  • $\begingroup$ @kglr Interesting, didn't know they released it a month ago in the cloud ... $\endgroup$
    – Szabolcs
    Dec 14, 2020 at 10:38
  • 1
    $\begingroup$ Shorter code that has the problem is: QuantilePlot[RandomVariate[NormalDistribution[0, 1], 32], PlotMarkers -> {"o"}] $\endgroup$
    – Ted Ersek
    Nov 3, 2021 at 13:34

1 Answer 1

7
$\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.

$\endgroup$
3
  • $\begingroup$ Thanks for the work around. $\endgroup$
    – user27119
    Oct 30, 2020 at 23:28
  • $\begingroup$ Interesting that the problem isn't present in 11.3.0, I'm using 12.1.1.0. $\endgroup$
    – user27119
    Oct 30, 2020 at 23:41
  • 2
    $\begingroup$ The bug exists in 12.3 as well. $\endgroup$
    – jaclea
    Nov 1, 2021 at 8:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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