TransWikia.com

How to remove Null plot markers in QuantilePlot?

Mathematica Asked on December 22, 2020

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?

One Answer

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.

Correct answer by kglr on December 22, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP