Message Boards Message Boards

[✓] Restrict the figure in the frame of DiscretePlot?

GROUPS:

Consider the following code:

DiscretePlot[PrimePi[k], {k, 1, 50}, PlotRange -> {1, 10}, 
         Frame -> True, Joined -> True]

enter image description here

I met this kind of problem in my research. Above is just an simple example. How can I restrict the plotrange into the frame not having something out side on the tick label? Thanks!

POSTED BY: qiyue wang
Answer
7 days ago

Add

PlotRangeClipping -> True

Regards

POSTED BY: Neil Singer
Answer
7 days ago

Thank you!

POSTED BY: qiyue wang
Answer
7 days ago

Group Abstract Group Abstract