Graphics, Figures & TablesTikZ - drawing functions

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
tardis93
Posts: 7
Joined: Thu Dec 27, 2012 7:39 pm

TikZ - drawing functions

Post by tardis93 »

Hy, everyone. I have to replicate this three functions in LaTeX using TikZ and I clearly don't know how to write it, do you know any sites with tutorials or with examples so I can try and do it myself. Also we have to do two functions with cubic Bezier interpolation and one with linear interpolation. Also we have to draw it in 100 dots, can you explain me what does that mean, and here are the functions and function graph, so could anyone introduce me a little bit with TikZ i would be so gratefull :) Thank you

Here are the links for the pictures of functions and how should the graph look like:)
http://i48.tinypic.com/9gd62x.jpg
http://i45.tinypic.com/15cdhg0.jpg

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

TikZ - drawing functions

Post by mas »

Take a look at pgfplots. It can do what you want. You can post your attempts and someone will definitely help you :-)

Regards.

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

TikZ - drawing functions

Post by cgnieder »

The TikZ manual (pgfmanual) can be a bit scary at the beginning but it is very comprehensive and has excellent tutorials. Also, there is TeXample, a website that presents lots of TikZ examples. The combination of both or mas' suggestion (pgfplots) should at least get you started.

Regards
site moderator & package author
tardis93
Posts: 7
Joined: Thu Dec 27, 2012 7:39 pm

Re: TikZ - drawing functions

Post by tardis93 »

Thanks alot guys, I will update you with my progress later. Once more, thank you very much :)
Post Reply