How to scale a TikZ image which is within a figure environment The 2019 Stack Overflow Developer Survey Results Are InFlowchart structure arrows are hiddenTikz 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?

Does Parliament need to approve the new Brexit delay to 31 October 2019?

Can we generate random numbers using irrational numbers like π and e?

Do I have Disadvantage attacking with an off-hand weapon?

Removing outer parenthesis in a diagram

Categorical vs continuous feature selection/engineering

Was credit for the black hole image misappropriated?

Can the Right Ascension and Argument of Perigee of a spacecraft's orbit keep varying by themselves with time?

Deal with toxic manager when you can't quit

How do spell lists change if the party levels up without taking a long rest?

Single author papers against my advisor's will?

Does the ranger's Archery Fighting Style apply to the monk's Deflect Missiles feature, for a multiclassed monk/ranger?

What other Star Trek series did the main TNG cast show up in?

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

Circular reasoning in L'Hopital's rule

Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?

Accepted by European university, rejected by all American ones I applied to? Possible reasons?

Quantum Toffoli gate equation

Can withdrawing asylum be illegal?

Do warforged have souls?

Windows 10: How to Lock (not sleep) laptop on lid close?

Is 'stolen' appropriate word?

Variable with quotation marks "$()"

different output for groups and groups USERNAME after adding a username to a group

Homework question about an engine pulling a train



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



The 2019 Stack Overflow Developer Survey Results Are InFlowchart structure arrows are hiddenTikz 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?










4















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
    Mar 30 at 15:40











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

    – baxx
    Mar 30 at 15:42











  • 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
    Mar 30 at 15:44






  • 1





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

    – koleygr
    Mar 30 at 15:52















4















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
    Mar 30 at 15:40











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

    – baxx
    Mar 30 at 15:42











  • 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
    Mar 30 at 15:44






  • 1





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

    – koleygr
    Mar 30 at 15:52













4












4








4








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








edited Mar 31 at 5:09









JouleV

12.8k22663




12.8k22663










asked Mar 30 at 15:39









baxxbaxx

383216




383216












  • Add scale=0.6 only?

    – JouleV
    Mar 30 at 15:40











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

    – baxx
    Mar 30 at 15:42











  • 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
    Mar 30 at 15:44






  • 1





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

    – koleygr
    Mar 30 at 15:52

















  • Add scale=0.6 only?

    – JouleV
    Mar 30 at 15:40











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

    – baxx
    Mar 30 at 15:42











  • 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
    Mar 30 at 15:44






  • 1





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

    – koleygr
    Mar 30 at 15:52
















Add scale=0.6 only?

– JouleV
Mar 30 at 15:40





Add scale=0.6 only?

– JouleV
Mar 30 at 15:40













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

– baxx
Mar 30 at 15:42





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

– baxx
Mar 30 at 15:42













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
Mar 30 at 15:44





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
Mar 30 at 15:44




1




1





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

– koleygr
Mar 30 at 15:52





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

– koleygr
Mar 30 at 15:52










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
    Mar 30 at 15:52











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

    – JouleV
    Mar 30 at 15:54






  • 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
    Mar 30 at 16:06






  • 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
    Mar 30 at 16:09







  • 1





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

    – Guilherme Zanotelli
    Mar 30 at 17:05











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
    Mar 30 at 15:52











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

    – JouleV
    Mar 30 at 15:54






  • 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
    Mar 30 at 16:06






  • 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
    Mar 30 at 16:09







  • 1





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

    – Guilherme Zanotelli
    Mar 30 at 17:05















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
    Mar 30 at 15:52











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

    – JouleV
    Mar 30 at 15:54






  • 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
    Mar 30 at 16:06






  • 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
    Mar 30 at 16:09







  • 1





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

    – Guilherme Zanotelli
    Mar 30 at 17:05













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 Mar 30 at 17:11

























answered Mar 30 at 15:47









JouleVJouleV

12.8k22663




12.8k22663












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

    – Guilherme Zanotelli
    Mar 30 at 15:52











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

    – JouleV
    Mar 30 at 15:54






  • 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
    Mar 30 at 16:06






  • 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
    Mar 30 at 16:09







  • 1





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

    – Guilherme Zanotelli
    Mar 30 at 17:05

















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

    – Guilherme Zanotelli
    Mar 30 at 15:52











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

    – JouleV
    Mar 30 at 15:54






  • 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
    Mar 30 at 16:06






  • 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
    Mar 30 at 16:09







  • 1





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

    – Guilherme Zanotelli
    Mar 30 at 17:05
















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

– Guilherme Zanotelli
Mar 30 at 15:52





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

– Guilherme Zanotelli
Mar 30 at 15:52













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

– JouleV
Mar 30 at 15:54





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

– JouleV
Mar 30 at 15:54




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
Mar 30 at 16:06





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
Mar 30 at 16:06




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
Mar 30 at 16:09






@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
Mar 30 at 16:09





1




1





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

– Guilherme Zanotelli
Mar 30 at 17:05





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

– Guilherme Zanotelli
Mar 30 at 17:05

















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

Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

Luettelo Yhdysvaltain laivaston lentotukialuksista Lähteet | Navigointivalikko

Gary (muusikko) Sisällysluettelo Historia | Rockin' High | Lähteet | Aiheesta muualla | NavigointivalikkoInfobox OKTuomas "Gary" Keskinen Ancaran kitaristiksiProjekti Rockin' High