Skip to content
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

fit does not scale if used in scaled scope #128

Closed
pgf-tikz-bot opened this issue Apr 23, 2010 · 7 comments
Closed

fit does not scale if used in scaled scope #128

pgf-tikz-bot opened this issue Apr 23, 2010 · 7 comments

Comments

@pgf-tikz-bot
Copy link

Migrated from SourceForge
Author: peterschueller
Timestamp: 2010-04-23 10:34:50

If some nodes are placed in a scope with scale=FOO used, then using the fit library within that scope will not correctly place fit the node, it will be unscaled.

I have attached two minimal examples and corresponding PDFs, in my opinion both should return the same PDF.

I am using pgf-2.00 (the tarball which can be downloaded from sourceforge)

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: peterschueller
Timestamp: 2010-04-23 10:34:51

https://sourceforge.net/p/pgf/bugs/_discuss/thread/4e91672b/b7fe/attachment/fitting_problem_in_scope_badcase.tex
source file where the problem occurs

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: peterschueller
Timestamp: 2010-04-23 10:35:21

https://sourceforge.net/p/pgf/bugs/_discuss/thread/4e91672b/bcf3/attachment/fitting_problem_in_scope_goodcase.tex
kind of a workaround to the problem

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: peterschueller
Timestamp: 2010-04-23 10:35:40

https://sourceforge.net/p/pgf/bugs/_discuss/thread/4e91672b/45ce/attachment/fitting_problem_in_scope_badcase.pdf
buggy output

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: peterschueller
Timestamp: 2010-04-23 10:37:00

https://sourceforge.net/p/pgf/bugs/_discuss/thread/4e91672b/b046/attachment/fitting_problem_in_scope_goodcase.pdf
how it should look like

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: nobody
Timestamp: 2010-05-05 13:31:10

Work when the "transform shape" option is added:

\begin{tikzpicture}
\begin{scope}[scale=0.10]
\node[draw] (node1) at (40,10) {node1};
\node[draw] (node2) at (30,5) {node2};
% this is the evil one
\node[draw,dotted,fit=(node1.north east) (node2.south west),transform shape] {};
\end{scope}
\end{tikzpicture}

However, I also think that it should also work without this option.

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: tantau
Timestamp: 2013-07-12 17:33:57.968000

  • status: open --> closed-fixed
  • Group: --> v1.0 (example)

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: tantau
Timestamp: 2013-07-12 17:33:58.724000

Fixed in CVS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant