Hi Matthew (cc. pgf-users for reference),
This works like a charm, thanks!
Tammo
Op 18 jul 2008, om 14:23 heeft Matthew Leingang het volgende geschreven:
> Hi Tammo,
>
> Good question. I asked it here once before and Kjell suggested I
> look at using nodes of various shapes to make the markers. They're
> not affected by the scaling of the coordinate system.
>
> As an example, here is the graph of a piecewise-defined function
> with a discontinuity. The two \tikzstyle declarations give
> basically a bullet and an open bullet. (cribbed from my own
> writing, so unfortunately not minimal!
>
> \begin{tikzpicture}
> \tikzstyle{axes}=[black,->]
> \tikzstyle{function}=[blue,very thick,-]
> \tikzstyle{point}=[fill,circle,minimum size=3pt,inner sep=0pt,outer
> sep=0pt]
> \tikzstyle{open point}=[draw=blue,fill=white,circle,minimum
> size=3pt,inner sep=0pt,outer sep=0pt]
> \draw[axes] (-3.2,0) -- (3.2,0) node[below] {$x$};
> \draw[axes] (0,-1.5) -- (0,3.2) node[left] {$f(x)$};
> \draw[function] (-3.2,-5.4) -- (-1,-1) node [point] {}
> (-1,0) node[open point] {} parabola bend (0,-1) (1,0)
> node[point] {}
> -- (2,2) node[point] {} parabola bend (2,2) (3.2,0.56);
> \foreach \x in {-1,1,2} {
> \draw (\x,0) node {$\scriptstyle |$}
> node[black,below] {$\x$};
> }
> \end{tikzpicture}
>
> Along the x-axis you can see my other hack for this kind of problem:
> the axis ticks are just text symbols rather than drawn lines. I do
> this because although there are dozens of shapes in the shape
> library (see section 39 of the 2.0 manual), there don't seem to be
> any with just a vertical line from the north anchor to the south
> anchor. That said, it should be *very* easy to code one up; I've
> just never gotten around to it.
>
> Hope that helps!
>
> --Matthew Leingang
>
> On Jul 17, 2008, at 9:17 AM, Tammo Jan Dijkema wrote:
>
>> A small question from someone with not too much TikZ-experience:
>> I would like to indicate grid points in a graph, in several figures.
>> These figures have a different scaling factor. I would like the size
>> of the markers to remain the same, something like 2pt, and not scale
>> with the coordinate system. That is: I would like the size of the
>> plot
>> markers to behave like the size of any text: it is independent of the
>> coordinate system. Is this possible with TikZ?
>>
>> A small example of what goes wrong follows. Thanks for any help.
>>
>> Tammo Jan Dijkema
>>
>>
>> \documentclass{article}
>> \usepackage{tikz}
>> \begin{document}
>>
>> \begin{tikzpicture}[scale=0.25]
>> \draw plot[only marks,mark=*,mark size=2pt] coordinates{(0,0) (4,0)
>> (4.5,0) (5,0)};
>> \end{tikzpicture}
>>
>> \vspace{5cm}
>>
>> \begin{tikzpicture}[scale=1]
>> \draw plot[only marks,mark=*,mark size=2pt] coordinates{(0,0) (4,0)
>> (4.5,0) (5,0)};
>> \end{tikzpicture}
>>
>> \end{document}
>>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users