How to scale a tikZ image which is within a figure environment The Next CEO of Stack OverflowTikz scale vs pgf scaleHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeAccess the scale option within TikZ environmentTikZ/ERD: node (=Entity) label on the insideHow to draw points in TikZ?Line up nested tikz enviroments or how to get rid of themHow to position this tikz figure in the center of a A4paper?tikz image overlay within a floatrow environmentHow can I have TikZ automata accepting nodes be the same size as nonaccepting nodes?

What connection does MS Office have to Netscape Navigator?

is it ok to reduce charging current for li ion 18650 battery?

Powershell. How to parse gci Name?

Plot of histogram similar to output from @risk

How to place nodes around a circle from some initial angle?

Where do students learn to solve polynomial equations these days?

Is there always a complete, orthogonal set of unitary matrices?

Won the lottery - how do I keep the money?

Why isn't acceleration always zero whenever velocity is zero, such as the moment a ball bounces off a wall?

Chain wire methods together in Lightning Web Components

Is it ever safe to open a suspicious HTML file (e.g. email attachment)?

0 rank tensor vs 1D vector

Why didn't Khan get resurrected in the Genesis Explosion?

What does "Its cash flow is deeply negative" mean?

How to invert MapIndexed on a ragged structure? How to construct a tree from rules?

Why, when going from special to general relativity, do we just replace partial derivatives with covariant derivatives?

Is there a way to save my career from absolute disaster?

Rotate a column

Why is information "lost" when it got into a black hole?

Are police here, aren't itthey?

Why do remote US companies require working in the US?

Need help understanding a power circuit (caps and diodes)

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Does increasing your ability score affect your main stat?



How to scale a tikZ image which is within a figure environment



The Next CEO of Stack OverflowTikz scale vs pgf scaleHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeAccess the scale option within TikZ environmentTikZ/ERD: node (=Entity) label on the insideHow to draw points in TikZ?Line up nested tikz enviroments or how to get rid of themHow to position this tikz figure in the center of a A4paper?tikz image overlay within a floatrow environmentHow can I have TikZ automata accepting nodes be the same size as nonaccepting nodes?










3















I have the following code :



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw


begindocument

this is the thing

beginfigure
begincenter
begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





% }
;
endtikzpicture
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


Which will out put :



enter image description here



Un-commenting the line



 % transform canvas=scale=0.6


Will scale the tikZ image, but as a result the formatting is broken.



enter image description here



I would like to be able to scale the tikz image, but keep the formatting otherwise intact.










share|improve this question






















  • Add scale=0.6 only?

    – JouleV
    7 hours ago











  • @JouleV thanks, that seems to mainly shrink the width, whereas i was interested in shrinking the overall tree

    – baxx
    7 hours ago











  • transform canvas is necessary to scale down the nodes, as, normally, we do not want to mess up with the font sizes and line widths. The problem is that transform canvas makes the tikz forget about the original drawing bounding box, thus it scales everything but "missplaces" it...

    – Guilherme Zanotelli
    7 hours ago






  • 1





    A hack would be to add a rule0pt5.5cm inside the argument of your caption

    – koleygr
    7 hours ago















3















I have the following code :



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw


begindocument

this is the thing

beginfigure
begincenter
begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





% }
;
endtikzpicture
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


Which will out put :



enter image description here



Un-commenting the line



 % transform canvas=scale=0.6


Will scale the tikZ image, but as a result the formatting is broken.



enter image description here



I would like to be able to scale the tikz image, but keep the formatting otherwise intact.










share|improve this question






















  • Add scale=0.6 only?

    – JouleV
    7 hours ago











  • @JouleV thanks, that seems to mainly shrink the width, whereas i was interested in shrinking the overall tree

    – baxx
    7 hours ago











  • transform canvas is necessary to scale down the nodes, as, normally, we do not want to mess up with the font sizes and line widths. The problem is that transform canvas makes the tikz forget about the original drawing bounding box, thus it scales everything but "missplaces" it...

    – Guilherme Zanotelli
    7 hours ago






  • 1





    A hack would be to add a rule0pt5.5cm inside the argument of your caption

    – koleygr
    7 hours ago













3












3








3








I have the following code :



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw


begindocument

this is the thing

beginfigure
begincenter
begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





% }
;
endtikzpicture
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


Which will out put :



enter image description here



Un-commenting the line



 % transform canvas=scale=0.6


Will scale the tikZ image, but as a result the formatting is broken.



enter image description here



I would like to be able to scale the tikz image, but keep the formatting otherwise intact.










share|improve this question














I have the following code :



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw


begindocument

this is the thing

beginfigure
begincenter
begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





% }
;
endtikzpicture
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


Which will out put :



enter image description here



Un-commenting the line



 % transform canvas=scale=0.6


Will scale the tikZ image, but as a result the formatting is broken.



enter image description here



I would like to be able to scale the tikz image, but keep the formatting otherwise intact.







tikz-pgf formatting tikz-trees






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 7 hours ago









baxxbaxx

378216




378216












  • Add scale=0.6 only?

    – JouleV
    7 hours ago











  • @JouleV thanks, that seems to mainly shrink the width, whereas i was interested in shrinking the overall tree

    – baxx
    7 hours ago











  • transform canvas is necessary to scale down the nodes, as, normally, we do not want to mess up with the font sizes and line widths. The problem is that transform canvas makes the tikz forget about the original drawing bounding box, thus it scales everything but "missplaces" it...

    – Guilherme Zanotelli
    7 hours ago






  • 1





    A hack would be to add a rule0pt5.5cm inside the argument of your caption

    – koleygr
    7 hours ago

















  • Add scale=0.6 only?

    – JouleV
    7 hours ago











  • @JouleV thanks, that seems to mainly shrink the width, whereas i was interested in shrinking the overall tree

    – baxx
    7 hours ago











  • transform canvas is necessary to scale down the nodes, as, normally, we do not want to mess up with the font sizes and line widths. The problem is that transform canvas makes the tikz forget about the original drawing bounding box, thus it scales everything but "missplaces" it...

    – Guilherme Zanotelli
    7 hours ago






  • 1





    A hack would be to add a rule0pt5.5cm inside the argument of your caption

    – koleygr
    7 hours ago
















Add scale=0.6 only?

– JouleV
7 hours ago





Add scale=0.6 only?

– JouleV
7 hours ago













@JouleV thanks, that seems to mainly shrink the width, whereas i was interested in shrinking the overall tree

– baxx
7 hours ago





@JouleV thanks, that seems to mainly shrink the width, whereas i was interested in shrinking the overall tree

– baxx
7 hours ago













transform canvas is necessary to scale down the nodes, as, normally, we do not want to mess up with the font sizes and line widths. The problem is that transform canvas makes the tikz forget about the original drawing bounding box, thus it scales everything but "missplaces" it...

– Guilherme Zanotelli
7 hours ago





transform canvas is necessary to scale down the nodes, as, normally, we do not want to mess up with the font sizes and line widths. The problem is that transform canvas makes the tikz forget about the original drawing bounding box, thus it scales everything but "missplaces" it...

– Guilherme Zanotelli
7 hours ago




1




1





A hack would be to add a rule0pt5.5cm inside the argument of your caption

– koleygr
7 hours ago





A hack would be to add a rule0pt5.5cm inside the argument of your caption

– koleygr
7 hours ago










1 Answer
1






active

oldest

votes


















7














Uhm, what's wrong with scale=0.6? It does shrink the overall tree without the font size.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
scale=0.6
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





% }
;
endtikzpicture
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here




If you want to make the whole thing (including font size) smaller, scalebox may be a good option.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
scalebox0.6begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





%
;
endtikzpicture}
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here




Well, scalebox also has its drawback. Therefore I think resetting the font size of all nodes, as Guilherme Zanotelli suggested, is nicer, but you have to do it manually. Here I use footnotesize.



enter image description here




If you don't like doing things manually, let TikZ help by transform shape, proposed by marmot in the comments (thank you very much). This option will change the font size in the scale given. However, sometimes you will get a supertiny font size, which is hard to read.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
scale=0.6,transform shape
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





% }
;
endtikzpicture
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here



There are many ways to do it. Choose the one you like best ;)






share|improve this answer

























  • Using scale=0.6 plus every node/.style=font=desiredfontsize properly scales the picture while maintaining font properties. =D

    – Guilherme Zanotelli
    7 hours ago











  • @GuilhermeZanotelli Seeing the OP's second image, I don't think (s)he wants to keep the font size.

    – JouleV
    7 hours ago






  • 2





    If you use scale=0.6,transform shape the fonts will be transformed, too. (scalebox may cause trouble if you want to work with remember pictrue.)

    – marmot
    7 hours ago






  • 2





    @JouleV No need. Your answer is great and I do not like "picking". But you could just add this alternative. (And of course I gave +1.)

    – marmot
    7 hours ago







  • 1





    @JouleV it's not, hahahaha. It's meant as "desired font size command" footnotesize and etcetera! ;D

    – Guilherme Zanotelli
    6 hours ago











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482276%2fhow-to-scale-a-tikz-image-which-is-within-a-figure-environment%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









7














Uhm, what's wrong with scale=0.6? It does shrink the overall tree without the font size.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
scale=0.6
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





% }
;
endtikzpicture
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here




If you want to make the whole thing (including font size) smaller, scalebox may be a good option.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
scalebox0.6begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





%
;
endtikzpicture}
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here




Well, scalebox also has its drawback. Therefore I think resetting the font size of all nodes, as Guilherme Zanotelli suggested, is nicer, but you have to do it manually. Here I use footnotesize.



enter image description here




If you don't like doing things manually, let TikZ help by transform shape, proposed by marmot in the comments (thank you very much). This option will change the font size in the scale given. However, sometimes you will get a supertiny font size, which is hard to read.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
scale=0.6,transform shape
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





% }
;
endtikzpicture
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here



There are many ways to do it. Choose the one you like best ;)






share|improve this answer

























  • Using scale=0.6 plus every node/.style=font=desiredfontsize properly scales the picture while maintaining font properties. =D

    – Guilherme Zanotelli
    7 hours ago











  • @GuilhermeZanotelli Seeing the OP's second image, I don't think (s)he wants to keep the font size.

    – JouleV
    7 hours ago






  • 2





    If you use scale=0.6,transform shape the fonts will be transformed, too. (scalebox may cause trouble if you want to work with remember pictrue.)

    – marmot
    7 hours ago






  • 2





    @JouleV No need. Your answer is great and I do not like "picking". But you could just add this alternative. (And of course I gave +1.)

    – marmot
    7 hours ago







  • 1





    @JouleV it's not, hahahaha. It's meant as "desired font size command" footnotesize and etcetera! ;D

    – Guilherme Zanotelli
    6 hours ago















7














Uhm, what's wrong with scale=0.6? It does shrink the overall tree without the font size.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
scale=0.6
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





% }
;
endtikzpicture
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here




If you want to make the whole thing (including font size) smaller, scalebox may be a good option.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
scalebox0.6begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





%
;
endtikzpicture}
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here




Well, scalebox also has its drawback. Therefore I think resetting the font size of all nodes, as Guilherme Zanotelli suggested, is nicer, but you have to do it manually. Here I use footnotesize.



enter image description here




If you don't like doing things manually, let TikZ help by transform shape, proposed by marmot in the comments (thank you very much). This option will change the font size in the scale given. However, sometimes you will get a supertiny font size, which is hard to read.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
scale=0.6,transform shape
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





% }
;
endtikzpicture
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here



There are many ways to do it. Choose the one you like best ;)






share|improve this answer

























  • Using scale=0.6 plus every node/.style=font=desiredfontsize properly scales the picture while maintaining font properties. =D

    – Guilherme Zanotelli
    7 hours ago











  • @GuilhermeZanotelli Seeing the OP's second image, I don't think (s)he wants to keep the font size.

    – JouleV
    7 hours ago






  • 2





    If you use scale=0.6,transform shape the fonts will be transformed, too. (scalebox may cause trouble if you want to work with remember pictrue.)

    – marmot
    7 hours ago






  • 2





    @JouleV No need. Your answer is great and I do not like "picking". But you could just add this alternative. (And of course I gave +1.)

    – marmot
    7 hours ago







  • 1





    @JouleV it's not, hahahaha. It's meant as "desired font size command" footnotesize and etcetera! ;D

    – Guilherme Zanotelli
    6 hours ago













7












7








7







Uhm, what's wrong with scale=0.6? It does shrink the overall tree without the font size.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
scale=0.6
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





% }
;
endtikzpicture
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here




If you want to make the whole thing (including font size) smaller, scalebox may be a good option.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
scalebox0.6begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





%
;
endtikzpicture}
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here




Well, scalebox also has its drawback. Therefore I think resetting the font size of all nodes, as Guilherme Zanotelli suggested, is nicer, but you have to do it manually. Here I use footnotesize.



enter image description here




If you don't like doing things manually, let TikZ help by transform shape, proposed by marmot in the comments (thank you very much). This option will change the font size in the scale given. However, sometimes you will get a supertiny font size, which is hard to read.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
scale=0.6,transform shape
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





% }
;
endtikzpicture
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here



There are many ways to do it. Choose the one you like best ;)






share|improve this answer















Uhm, what's wrong with scale=0.6? It does shrink the overall tree without the font size.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
scale=0.6
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





% }
;
endtikzpicture
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here




If you want to make the whole thing (including font size) smaller, scalebox may be a good option.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
scalebox0.6begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





%
;
endtikzpicture}
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here




Well, scalebox also has its drawback. Therefore I think resetting the font size of all nodes, as Guilherme Zanotelli suggested, is nicer, but you have to do it manually. Here I use footnotesize.



enter image description here




If you don't like doing things manually, let TikZ help by transform shape, proposed by marmot in the comments (thank you very much). This option will change the font size in the scale given. However, sometimes you will get a supertiny font size, which is hard to read.



documentclassarticle

usepackagetikz
usetikzlibrarypositioning,shadows,arrows
tikzset
treenode/.style = shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20,
root/.style = treenode, font=Large, bottom color=red!30,
env/.style = treenode, font=ttfamilynormalsize,
dummy/.style = circle,draw

usepackagelipsum

begindocument

lipsum[1]

beginfigure
begincenter
begintikzpicture[
root/.style=circle, draw=none, rounded corners=1mm, fill=green, circular drop shadow,
text centered, anchor=north, text=black,
main/.style=circle, draw=none, rounded corners=1mm, fill=pink, circular drop shadow,
text centered, anchor=north, text=black,
fact/.style=rectangle, draw=none, rounded corners=1mm, fill=blue, drop shadow,
text centered, anchor=north, text=white,
state/.style=circle, draw=none, fill=orange, circular drop shadow,
text centered, anchor=north, text=white,
leaf/.style=circle, draw=none, fill=red, circular drop shadow,
text centered, anchor=north, text=white,
level distance=0.5cm, growth parent anchor=south,
%
% this line will scale the tikz image but messes up the text
% transform canvas=scale=0.6
scale=0.6,transform shape
]
node (State00) [main] Question [->]
child [sibling distance=9cm]
node (State01) [state] One
child
node (Fact02) [fact] yes
child [sibling distance=4cm]
node (State02) [leaf] Good


child [sibling distance=4cm]
node (Fact10) [fact] no
child
node (State10) [state] Two
child
node (Fact11) [fact] yes
child
node (State11) [leaf] Good


child
node (Fact12) [fact] no
child
node (State11) [leaf] Bad





% }
;
endtikzpicture
caption[Decision Tree]%
%
emphBasic decision tree
%

labeltikz:decision-tree
endcenter
endfigure
enddocument


enter image description here



There are many ways to do it. Choose the one you like best ;)







share|improve this answer














share|improve this answer



share|improve this answer








edited 6 hours ago

























answered 7 hours ago









JouleVJouleV

9,16322256




9,16322256












  • Using scale=0.6 plus every node/.style=font=desiredfontsize properly scales the picture while maintaining font properties. =D

    – Guilherme Zanotelli
    7 hours ago











  • @GuilhermeZanotelli Seeing the OP's second image, I don't think (s)he wants to keep the font size.

    – JouleV
    7 hours ago






  • 2





    If you use scale=0.6,transform shape the fonts will be transformed, too. (scalebox may cause trouble if you want to work with remember pictrue.)

    – marmot
    7 hours ago






  • 2





    @JouleV No need. Your answer is great and I do not like "picking". But you could just add this alternative. (And of course I gave +1.)

    – marmot
    7 hours ago







  • 1





    @JouleV it's not, hahahaha. It's meant as "desired font size command" footnotesize and etcetera! ;D

    – Guilherme Zanotelli
    6 hours ago

















  • Using scale=0.6 plus every node/.style=font=desiredfontsize properly scales the picture while maintaining font properties. =D

    – Guilherme Zanotelli
    7 hours ago











  • @GuilhermeZanotelli Seeing the OP's second image, I don't think (s)he wants to keep the font size.

    – JouleV
    7 hours ago






  • 2





    If you use scale=0.6,transform shape the fonts will be transformed, too. (scalebox may cause trouble if you want to work with remember pictrue.)

    – marmot
    7 hours ago






  • 2





    @JouleV No need. Your answer is great and I do not like "picking". But you could just add this alternative. (And of course I gave +1.)

    – marmot
    7 hours ago







  • 1





    @JouleV it's not, hahahaha. It's meant as "desired font size command" footnotesize and etcetera! ;D

    – Guilherme Zanotelli
    6 hours ago
















Using scale=0.6 plus every node/.style=font=desiredfontsize properly scales the picture while maintaining font properties. =D

– Guilherme Zanotelli
7 hours ago





Using scale=0.6 plus every node/.style=font=desiredfontsize properly scales the picture while maintaining font properties. =D

– Guilherme Zanotelli
7 hours ago













@GuilhermeZanotelli Seeing the OP's second image, I don't think (s)he wants to keep the font size.

– JouleV
7 hours ago





@GuilhermeZanotelli Seeing the OP's second image, I don't think (s)he wants to keep the font size.

– JouleV
7 hours ago




2




2





If you use scale=0.6,transform shape the fonts will be transformed, too. (scalebox may cause trouble if you want to work with remember pictrue.)

– marmot
7 hours ago





If you use scale=0.6,transform shape the fonts will be transformed, too. (scalebox may cause trouble if you want to work with remember pictrue.)

– marmot
7 hours ago




2




2





@JouleV No need. Your answer is great and I do not like "picking". But you could just add this alternative. (And of course I gave +1.)

– marmot
7 hours ago






@JouleV No need. Your answer is great and I do not like "picking". But you could just add this alternative. (And of course I gave +1.)

– marmot
7 hours ago





1




1





@JouleV it's not, hahahaha. It's meant as "desired font size command" footnotesize and etcetera! ;D

– Guilherme Zanotelli
6 hours ago





@JouleV it's not, hahahaha. It's meant as "desired font size command" footnotesize and etcetera! ;D

– Guilherme Zanotelli
6 hours ago

















draft saved

draft discarded
















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482276%2fhow-to-scale-a-tikz-image-which-is-within-a-figure-environment%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Tórshavn Kliima | Partnerstääden | Luke uk diar | Nawigatsjuun62° 1′ N, 6° 46′ W62° 1′ 0″ N, 6° 46′ 0″ WWMOTórshavn

南部首創開放式體驗廚房 用智慧廚具做出好料理

大學姐愛和弟洗澡 突襲浴室求共浴