Skip to main content
7 votes
Accepted

Drawing curvy lines in math image for a paper- which package to use?

Okay, let me give you a very basic introduction to TikZ. You should take a loot at the TikZ manual which contains a few very insightful tutorials. Two very important macros in TikZ are \node and \draw....
Jasper Habicht's user avatar
6 votes
Accepted

Centering figure from GeoGebra

The output delivered by GeoGebra always contains a \clip instruction that most of the times is wrong. Here's the output with the \clip line commented out: \begin{tikzpicture}[line cap=round,line ...
egreg's user avatar
  • 1.1m
5 votes
Accepted

PSTricks code automatically generated by GeoGebra doesn't comple?

You have not shown the error message just a summary missing the main information. the first error is ! Undefined control sequence. <recently read> \scalebox l.15 ...l{...
David Carlisle's user avatar
5 votes
Accepted

Dimension too large error GeoGebra Export

As @ManuelCart has already pointed out in a comment, the immediate cause of the error is that tan(90 degrees)=tan(((pi/2)*180/pi) isn't defined. You must restrict the domain of the functions that ...
Mico's user avatar
  • 514k
4 votes

Background color of tikzpicture

like this? the solution for your wish is provided by Bobyandbob's comments. that the background rectangle will show up you need to add tikz library backgrounds. off-topic: apparently geogebra ...
Zarko's user avatar
  • 300k
4 votes
Accepted

Need help to export tikz code from geogebra

First of all, I don't think using Geogebra is useful to learn TikZ. Geogebra is useful for making drawings and exporting them to LaTeX, its drawback is that the code is overloaded with useless stuff: ...
AndréC's user avatar
  • 25.8k
3 votes

Tikz: Arrow tip overlaps with node

Place the node at the desired coordinates with shape and label information, and give it a name (I used Y). Then draw the line to the node, not to the coordinates, using \draw [->] (5.9,0.74) -- (Y);...
Sandy G's user avatar
  • 46.6k
3 votes

How could I draw the projection of a three-dimensional domain of integration onto the xy-plane by TikZ/PGF

I think there is no reason to use GeoGebra to plot this simple kind of graphs. I started a new draw and tried to use the more simple and minimalistic code as possible \documentclass[border=4mm]{...
Cragfelt's user avatar
  • 4,015
3 votes
Accepted

Gnuplot: Where is my mistake?

This question is off topic, as it concerns gnuplot and not LaTeX. But to answer your question: The problem is, that the result of (a/b) in dweibull(x,a,b) = (a/b) * ((x/b)**(a-1)) * exp(-(x/b)**a); ...
Wamseln's user avatar
  • 808
3 votes

Problem using Geogebra and Babel Spanish

The cure for your problem is to load TikZ library babel in document preamble. It restore the meanings of some symbols changes by the package babel. Beside this don't mix syntax of the tikz and the ...
Zarko's user avatar
  • 300k
3 votes
Accepted

Problem with exports pgf/tikz graphic of geogebra to latex

The quickest fix is to add \pgfplotsset{compat=1.11} to the preamble. By default, the coordinates of normal TikZ drawing macros like \draw do not correspond to axis units, when used inside an axis ...
Torbjørn T.'s user avatar
3 votes
Accepted

Mimic GeoGebra's grid lines with pgfplots

In the doc p.372 With major grid style={gray}, minor grid style={gray!50} \documentclass[margin=0.5cm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} ...
pascal974's user avatar
  • 5,367
2 votes

Graph of 2*\cos(x-1)

I have edited your code done with Geogebra. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[>=latex,scale=1] % X axis \draw[->] (-5,0) -- (3,0) node[...
Sebastiano's user avatar
  • 56.6k
2 votes

Dimension too large, <to be read again> error

Motivation The current accepted answer doesn't explain why Dimension too large restrict y to domain doesn't work in OP's example. Moreover, it mainly relies on hard-coding to chop the curve's x ...
GNUSupporter 8964民主女神 地下教會's user avatar
2 votes

Creating an involute curve

There are some differences with yours, but the concept is the same. The tangents and the lower arc are calculated properly, however, the top arcs are just cosmetic. It's really hard to build arcs ...
Alenanno's user avatar
  • 37.5k
2 votes

$0.5(floor(x)+x $ graph in LaTeX

In this case plain tikz would be my choice: \documentclass[border=2mm]{standalone} \usepackage {tikz} \begin{document} \begin{tikzpicture}[line cap=round] \def\minx{-2} \def\maxx {5} \...
Juan Castaño's user avatar
2 votes

$0.5(floor(x)+x $ graph in LaTeX

For fun, it is simple with pstricks: \documentclass[11pt,svgnames, border=3pt]{standalone} \usepackage{pst-plot, multido} \begin{document} \begin{pspicture*}(-1,-1)(5,5) \multido{\i=1+1,\n=0.5+1.0}{...
Bernard's user avatar
  • 273k
2 votes
Accepted

Error from PGF/TikZ .tex file from geogebra (size)

I think in you case the TeX-output is rather helpful. In fact, the tikzpicture you want to render is of the size 5m wide and 3,8m high, which might not be want you want ("too large"). I ...
user1327's user avatar
2 votes
Accepted

I am exporting the code to plot floor function in latex from GeoGebra but it is not working (floor function)

As usual, GeoGebra generated code needs to be edited. A domain from –15 to 15 will result in a 30cm wide graph, so it's necessary to reduce it. You also need to specify the compatibility level of ...
egreg's user avatar
  • 1.1m
2 votes
Accepted

How to fix the xticklabels when it is rotated?

Replace the code with the following: xticklabels={ ,Trauma\\ Injury,Abdominal\\ Pain,Respiratory\\ Distress,Chest\\ Pain,Behavioural\\ Disorder,Loss of\\ Consciousness,Seizure,Poison/Drug\\ ...
John Smith's user avatar
2 votes
Accepted

GeoGebra: LaTeX vSpace* doesnt shift up the Equation

GeoGebra produces awful TikZ code. The seemingly high precision is ridiculous, so I reduced to two decimal digits (three for the color). Most notably, the produced code always has a wrong \clip ...
egreg's user avatar
  • 1.1m
1 vote
Accepted

tikzpicture (imported from geogebra) has arc SHIFTED from the correct position

I don't know much about Geogebra so I cant's say what could cause your problem. But, IMHO, this kind of pictures are simple enough to draw them directly in TikZ. This is not a solution (for what you ...
Juan Castaño's user avatar
1 vote

Geogebra generated TikZ code not working

The underscore character is used to make subscripts, but it only works in math mode. That is why your code throws a missing $ error. So changing T_1 to $T_1$ as Ignasi suggested will fix that problem. ...
Torbjørn T.'s user avatar
1 vote
Accepted

Tikz: Arrow tip overlaps with node

You can definitely shorten all arrowtips by the amount of a dot radius via \tikzset{shorten >= 2pt} \documentclass{article} \usepackage{tikz} \usepackage{xcolor} \colorlet{qqwwqq}{green!50!black} ...
antshar's user avatar
  • 4,632
1 vote

Problem when when generating a Tikz code on Geogebra : semi-circle is displaced

The only problem is the shift command didn't declare unit cm, (e.g. shift={(0cm,1cm)}). The following code should work: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows} \usepackage{...
Tom's user avatar
  • 7,733

Only top scored, non community-wiki answers of a minimum length are eligible