# Get proper clipping at PlotRange edge?

**URL:** <https://community.wolfram.com/t/get-proper-clipping-at-plotrange-edge/10197>\
**Category:** Questions\
**Tags:** graphics-and-visualization\
**Created:** [March 23, 2017, 10:53am UTC](https://community.wolfram.com/t/get-proper-clipping-at-plotrange-edge/10197 "2017-03-23T10:53:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrilluminates](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@mrilluminates](https://community.wolfram.com/u/mrilluminates)\
**Post date:** [March 23, 2017, 10:53am UTC](https://community.wolfram.com/t/get-proper-clipping-at-plotrange-edge/10197/1 "2017-03-23T10:53:53Z")

</div>

I’ve noticed that in some situations the clipping is not done properly, despite the explicit setting PlotRangeClipping-\>True:  
So I plot some complex function:

```
Plot[{my function}, {M5, 0, 400}, PlotRange -> {{0, 400}, {0, 1500}}, 
 Frame -> True, 
 FrameTicks -> {{{0, 300, 600, 900, 1200, 1500}, 
    None}, {{0, 100, 200, 300, 400}, None}}, 
 FrameLabel -> {"Subscript[\[Mu], 5] (MeV)", "m (MeV)"}, 
 PlotStyle -> {{Black, Thickness[.007]}, {Black, Dashed}, 
   Black, {Black, Dashing[Tiny]}}, 
 PlotLabels -> Placed[{"+", "\[Sigma]", "-"}, {Scaled[0.6], Above}], 
 ImagePadding -> None]

```

Then I save it as EPS, and I insert in LATEX:

```
\begin{figure}[!htb]
\centering
\includegraphics[scale=.7]{plot.eps}
\caption{Digraph.}
\label{fig:digraph}
\end{figure}

```

And after that I do pdf.  
It displays as:  
[![enter image description here](https://i.stack.imgur.com/PKOVo.png)](https://i.stack.imgur.com/PKOVo.png)  
How may I solve this problem?

EDIT: SIMPLE EXAMPLE

Let

```
ListPlot[Table[{x, Sin[x]}, {x, -0.5, 6, 0.2}], 
 PlotRange -> {{0, 5.1}, {-1, 1}}, Frame -> True, 
 ImageSize -> {200, 150}, Joined -> True, 
 ImagePadding -> {{40, 5}, {40, 5}}, PlotRangeClipping -> True]
Export["zz.eps", %];

```

It displays good as  
[![enter image description here](https://i.stack.imgur.com/xpiJd.png)](https://i.stack.imgur.com/xpiJd.png)

Then I save it as EPS, to insert in LATEX:

```
\begin{figure}[!htb]
\centering
\includegraphics[scale=.7]{zz.eps}
\caption{Digraph.}
\label{fig:digraph}
\end{figure}

```

And after that I do pdf:  
[![enter image description here](https://i.stack.imgur.com/z8SMI.png)](https://i.stack.imgur.com/z8SMI.png)  
[![enter image description here](https://i.stack.imgur.com/TFf5i.png)](https://i.stack.imgur.com/TFf5i.png)

There are “whiskers”. How may I remove it?

_**connection [with](https://mathematica.stackexchange.com/questions/140757/non-proper-clipping-at-plotrange-edge)**_
