Search found 6 matches

by europaflyer
Sun Mar 17, 2013 7:33 pm
Forum: Graphics, Figures & Tables
Topic: 'Clipped' sine curve in PGFPlots
Replies: 12
Views: 16848

Re: 'Clipped' sine curve in PGFPlots

I see. I hadn't made the connection that the individual \addplots options worked the same as the general options. A steep learning curve!

Again, many thanks.
by europaflyer
Sun Mar 17, 2013 7:03 pm
Forum: Graphics, Figures & Tables
Topic: 'Clipped' sine curve in PGFPlots
Replies: 12
Views: 16848

Re: 'Clipped' sine curve in PGFPlots

Very many thanks to you both! I'm something of a LaTeX newbie, and it's really great to get the help from people who really know their business. This does the job perfectly.

Just one final question - is it possible to add a second curve not restricted by the clipping?
by europaflyer
Sun Mar 17, 2013 2:02 pm
Forum: Graphics, Figures & Tables
Topic: 'Clipped' sine curve in PGFPlots
Replies: 12
Views: 16848

Re: 'Clipped' sine curve in PGFPlots

That's really nice work, big thanks Stefan.

Would there be any way to connect the ends by a straight line as in the example, or is the best way to manually enter four new lines (not a very elegant solution!)?
by europaflyer
Sun Mar 17, 2013 1:16 pm
Forum: Graphics, Figures & Tables
Topic: 'Clipped' sine curve in PGFPlots
Replies: 12
Views: 16848

Re: 'Clipped' sine curve in PGFPlots

Sorry! I've edited it - is that OK now?

Thanks
by europaflyer
Sat Mar 16, 2013 6:35 pm
Forum: Graphics, Figures & Tables
Topic: 'Clipped' sine curve in PGFPlots
Replies: 12
Views: 16848

'Clipped' sine curve in PGFPlots

Here it is.


\documentclass{report}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
domain=-6.283:6.283,
grid=both,minor tick num=2,
title={\underline{Title goes here}},
xlabel=Bacon,
ylabel=Eggs,
legend pos=outer north east]
\addplot+[no marks, samples=100] {sin ...
by europaflyer
Sat Mar 16, 2013 3:57 pm
Forum: Graphics, Figures & Tables
Topic: 'Clipped' sine curve in PGFPlots
Replies: 12
Views: 16848

'Clipped' sine curve in PGFPlots

Hi,

I'm trying to produce a sine curve in pgfplots where the y-values do not exceed a certain number like this:
sinus-wave-signal.jpg
sinus-wave-signal.jpg (51.58 KiB) Viewed 13423 times
Any ideas, or is this impossible?

Thanks!