LaTeX forum ⇒ Graphics, Figures & TablesTikZ GUI ? Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
BastienBastien
Posts: 32
Joined: Mon Aug 20, 2012 2:27 pm

TikZ GUI ?

Postby BastienBastien » Wed Apr 20, 2016 10:56 am

Hello guys,

I am trying to improve my enclosed graphics.
Of course everything could be performed by using TikZ commands by "hand".
But it is really difficult in some cases.
Could you please tell me if there are some TikZ graphical tools?
I have found some, but they are not developped anylonger (Cirkuit) or not suited (LaTeXDraw) or for Windows only (I use Arch GNU/Linux).
There is Inkscape but I have the feeling it is very powerful but not suited.

Regards,
Me!
Attachments
a.png
a.png (14.27 KiB) Viewed 1590 times

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

Postby mas » Thu Apr 21, 2016 4:45 am

Hi,

What is it that you are trying to "improve" in the image? You have not mentioned what is the expectation and problems in achieving that.

It appears that you are trying to plot something. If you are trying to plot a graph of a known function and/or data points, you are better off using pgfplots.

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim

BastienBastien
Posts: 32
Joined: Mon Aug 20, 2012 2:27 pm

Postby BastienBastien » Sun Aug 06, 2017 9:38 pm

Hello,

Actually the curves are fine, but as you can see there is an arrow on the left side of the plot.
I would have to draw several (let's say eight) arrows. All those arrows have to be parallel each others.
Of course this is feasible but very difficult "by hand" because you have to calculate the points.
Is there a way to proceed so that it is easier, faster, stronger ?

Regards,
Me

User avatar
thomasb
Posts: 76
Joined: Thu Aug 03, 2017 10:54 am
Location: france

Postby thomasb » Mon Aug 07, 2017 1:22 am

BastienBastien wrote:because you have to calculate the points.

Or by eye ?

BastienBastien
Posts: 32
Joined: Mon Aug 20, 2012 2:27 pm

Postby BastienBastien » Mon Aug 07, 2017 8:56 am

By eyes. That means trial-error process.
This is what I do.
It takes a long time and is not accurate.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8368
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Mon Aug 07, 2017 12:31 pm

There is TikZEdt. It provides syntax highlighting, code completion, real time rendering, and more.

tikzedt.png
tikzedt.png (70.41 KiB) Viewed 596 times


And Dia can do pgf(TikZ) export. It's like a simpler Visio drawing program and runs on Linux, Mac OS X, Unix, and Windows.

dia.png
dia.png (192.22 KiB) Viewed 596 times


Stefan
Site admin

BastienBastien
Posts: 32
Joined: Mon Aug 20, 2012 2:27 pm

Postby BastienBastien » Tue Aug 08, 2017 9:47 am

Thank for TikzEdt. It sems a good piece of soft.
I will give it a try.

(regarding Dia, it is very very limited.)

Regards,
Bastien

User avatar
thomasb
Posts: 76
Joined: Thu Aug 03, 2017 10:54 am
Location: france

Postby thomasb » Tue Aug 08, 2017 5:27 pm

Do you have access to your graphic code ? It probably is the one generated by Matlab...

However, as you placed the first one, you could repeat the placement with counter-increased coordinates. Copy-paste a bit of code here with your arrow...

What about this, with the counter, you increase the coordinates (the results are in pdf attachments) :
  1. \documentclass{book}
  2.  
  3. \begin{document}
  4.  
  5. Allo ?\\ % no package here
  6.  
  7. \newcount\foo % declaration
  8. \foo=10 % initialization
  9. \loop % like "for"
  10. \message{\the\foo} % for package writers, it displays the counter values
  11. % during the compilation
  12.  
  13. Non mais allo, quoi ?\\ % here : you replace it with your arrow, with
  14. % the counter-translated coordinates. Post the arrow.
  15.  
  16. \advance \foo -1 % decrement the counter
  17. \ifnum \foo>0 % condition to stop
  18. \repeat % otherwise, loop
  19.  
  20. \end{document}


And what about this :
  1. \documentclass{book}
  2.  
  3. \usepackage{picture} % one package only
  4.  
  5. \begin{document}
  6.  
  7. Here \multiput(0,0)(10,-20){10}{we} are again. % this solution really seems
  8. % adapted for your arrow
  9.  
  10. \end{document}
Attachments
minimalRepeat.pdf
(13.27 KiB) Downloaded 12 times
minimalRepeat2.pdf
(12.69 KiB) Downloaded 14 times

rais
Posts: 146
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Tue Aug 08, 2017 8:47 pm

Since tikz is already mentioned by the OP, its own \foreach statement might come in handy, too:
  1. \documentclass{standalone}
  2. \usepackage{tikz}
  3. \begin{document}
  4. \begin{tikzpicture}[>=latex]
  5. \foreach \x/\y in {1cm/3cm,2cm/2.5cm,8cm/0cm}
  6. \draw[->] (\x, \y) -- +(30:1cm);
  7. \end{tikzpicture}
  8. \end{document}

KR
Rainer

BastienBastien
Posts: 32
Joined: Mon Aug 20, 2012 2:27 pm

Postby BastienBastien » Wed Aug 09, 2017 5:15 pm

All solutions are interesting!
I will edit my Tikz graph by using thomas´s and rais´s solution,
but Stefan´s tool will be interesting for me in the future.

Thank you all,
Bastien


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: Cham and 8 guests