Message Boards Message Boards

GROUPS:

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

Posted 8 months ago
705 Views
|
2 Replies
|
1 Total Likes
|

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!

2 Replies

Add

PlotRangeClipping -> True

Regards

Posted 8 months ago

Thank you!

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