Message Boards Message Boards

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

Posted 6 years ago

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
2 Replies

Add

PlotRangeClipping -> True

Regards

POSTED BY: Neil Singer
Posted 6 years ago

Thank you!

POSTED BY: qiyue wang
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract