How to scale a TikZ image which is within a figure environmentFlowchart 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?

Python - What if the end-user didn't have the required library?

Pressure inside an infinite ocean?

What to use instead of cling film to wrap pastry

Why are prions in animal diets not destroyed by the digestive system?

Wrong answer from DSolve when solving a differential equation

PN junction band gap - equal across all devices?

Why do only some White Walkers shatter into ice chips?

Introducing Gladys, an intrepid globetrotter

What is the most remote airport from the center of the city it supposedly serves?

Adjusting layout of footer using fancyhdr

As a Bard multi-classing into Warlock, what spells do I get?

What was the design of the Macintosh II's MMU replacement?

As matter approaches a black hole, does it speed up?

Why didn't the check-in agent recognize my long term visa?

Could the black hole photo be a gravastar?

Are the Night's Watch still required?

Using column size much larger than necessary

What are the advantages of luxury car brands like Acura/Lexus over their sibling non-luxury brands Honda/Toyota?

Why do people keep telling me that I am a bad photographer?

What was Bran's plan to kill the Night King?

Why is Arya visibly scared in the library in Game of Thrones S8E3?

Applying a GPO to local users except local administrators on Workgroup computers

Have I damaged my car by attempting to reverse with hand/park brake up?

What was the first sci-fi story to feature the plot "the humans were the monsters all along"?



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


Flowchart 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

16.2k22667




16.2k22667










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

16.2k22667




16.2k22667












  • 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

He _____ here since 1970 . Answer needed [closed]What does “since he was so high” mean?Meaning of “catch birds for”?How do I ensure “since” takes the meaning I want?“Who cares here” meaningWhat does “right round toward” mean?the time tense (had now been detected)What does the phrase “ring around the roses” mean here?Correct usage of “visited upon”Meaning of “foiled rail sabotage bid”It was the third time I had gone to Rome or It is the third time I had been to Rome

Bunad

Færeyskur hestur Heimild | Tengill | Tilvísanir | LeiðsagnarvalRossið - síða um færeyska hrossið á færeyskuGott ár hjá færeyska hestinum