-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help lines grid with coordinates #760
Comments
Use For example: \documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xmin=-2,xmax=5,
ymin=-2,ymax=5,
xtick={-2,...,5},
ytick={-2,...,5},
minor tick num=4,
ticks=both,
grid=both,
]
\end{axis}
\end{tikzpicture}
\end{document} |
This comment has been minimized.
This comment has been minimized.
Still I believe that |
I'm not enough a TikZ-expert to do this in a robust way, nor in the rules of art. That's the reason I requested this feature. Hence would be nice for this feature request to not be closed. |
Seeing your examples I just remembered that something similar is done to be able to add annotations to images in the tikz-imagelabels package. Maybe this is a good start to create a similar library for TikZ? |
@Mo-Gul Many thanks for this reminder! I was aware of this package but was unable to remember its name and find it. Nevertheless:
|
Why? We already know of two packages ( |
|
This comment has been minimized.
This comment has been minimized.
Very nice solution indeed, which could be subject to a library! Except maybe that loading |
I have reopened this issue and applied the “help wanted” tag to show that if you want this feature, you (or someone else) will have to implement this. |
@tallmarmot:
What I have in mind is the grids as provided by \documentclass{article}
\usepackage{pstricks}
\thispagestyle{empty}
\begin{document}
\psgrid(0,0)(-1,-1)(3,2)
\end{document} |
@dbitouze Looks like you have a solution already. Just place that in a node at the origin and you're good to go. \documentclass{article}
\usepackage{pstricks}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node at (0,0) {\psgrid(0,0)(-1,-1)(3,2)};
\draw[thick,red] (0,0) to (2,2);
\end{tikzpicture}
\end{document} |
@hmenke That's not a suitable solution: loading |
Well, we have proposed multiple disparate solutions, none of which you have deemed satisfactory. Also, no volunteers are forthcoming for the library implementation that you demand. The lack of interest from the community in this feature led me to close this request. Further, in my opinion, PGF/TikZ should not provide any pre-made solutions. Instead, I think of it as a toolbox with generic mechanisms that allow the user to create specific solutions like this one. |
Too bad!
Doesn't TikZ provide the pre-made |
Yes, indeed TikZ provides |
Sorry to insist. IMO, grids with labels are not that specific. Comparatively, PSTricks considers grids with labels as basic graphics objects. |
Then use PSTricks. |
If I insist, it is because I do prefer TikZ over PSTricks nowadays: much more possibilities and, above all, it does work with all the current engines. My request is just a feature request, no need to be rude. |
Would be nice to provide an option that makes possible to easily add coordinates to an help lines grid, as in this answer on SE.
The text was updated successfully, but these errors were encountered: