0
votes
0answers
39 views

Keepaspectratio option for tikz picture

In my current document I have both pictures from file and tikz pictures. For the output I use both, landscape (for screen reading) and portrait (for print). For pictures loaded from file i use the ...
4
votes
1answer
123 views

How can I import and scale matplotlib plots, keeping fonts the correct size?

I'm working on several pieces of coursework involving lots of plots generated with matplotlib in python scripts. Currently I'm doing this with an iterative process where I set a plot size in the ...
0
votes
0answers
57 views

Scale to fixed width of tikzpicture [duplicate]

After looking for something like that here and searching the site. I haven't found something that works (may be I skipped something important). I would like an automated way of telling tikz the final ...
4
votes
1answer
83 views

Scaling a tikzpicture to fit in a beamer frame

How can I vertically scale the figure to accomodate on the frame? \begin{frame}{P\textsuperscript{H}metry studies} \begin{figure}[scale=0.5\textheight] \begin{tikzpicture} \node [block] at (0,6) ...
8
votes
2answers
309 views

Scale tikz figure to a percentage of \textwidth

A user asked a question about scaling a figure to a factor of \textwidth and got an answer like this: \documentclass{article} \usepackage{graphicx} \begin{document} ...
13
votes
2answers
194 views

Access the scale option within TikZ environment

When using the scale option in \tikz[xscale=2] etc, is there any way to access the scale setting from within the TikZ environment?
5
votes
2answers
139 views

Adjusting the size of an arrow

I would like to make the width of an arrowhead larger. Is there a simple way to do this without defining a new arrowhead type? For instance, I would like to be able to write something like ...
1
vote
1answer
91 views

How to scale a tikzpicture in an external file for a beamer slide?

I have this tikz diagram in a separate document. I use the standalone package to include it into my presentation. However, I experience several problems: Setting the included picture size Scaling ...
6
votes
1answer
91 views

Scaling inside a TikZ matrix does not work?

I'm having some difficulty at scaling a TikZ draw inside a matrix: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=.5] \matrix ...
7
votes
2answers
361 views

tikz, positioning library: node distances in scaled pictures

I do find it arkward that numbers without dimension in the shifting part of the keys from the positioning library are not scaled. I can retrieve the unit vector and use it in the values but I do find ...
6
votes
0answers
241 views

Scale .pgf image but preserve font size

Using Matplotlib, I generated a .pgf image. import matplotlib matplotlib.rcParams.update({"pgf.texsystem": "pdflatex"}) from matplotlib.pyplot import subplots, show from numpy import linspace x = ...
2
votes
0answers
249 views

TikZ scaling graphic and adjust node position and keep font size

I have several pictures in my thesis. I want to draw arrows with text over these pictures. After that I want to scale the picture, but the node position should adjust to the scaling and arrows, and ...
3
votes
1answer
140 views

Wrong frame size in animation

Consider the following code (more or less this): \documentclass{article} \usepackage{lmodern} \usepackage[ hmargin=2.4cm, vmargin=3cm ]{geometry} \usepackage{tikz} \usetikzlibrary{calc} ...
8
votes
3answers
436 views

Scaling a tikz-cd commutative diagram in TikZ?

I'd like to be able to scale some rather complex CDs using the scale key, for example scale=0.5. In the following MWE the scale key seems to have no effect. \documentclass{amsart} \usepackage{tikz} ...
3
votes
1answer
279 views

Scaling graph along x axis

I am trying to plot a symple graph with pgfplots but the numbers do not seem to appear right. Is it possible to somehow scale the left part of the graph? I would also like the numbers on the x axis ...
2
votes
0answers
71 views

Scalable node shape size

I can adjust the shape of nodes using commands such as minimum width or inner xsep, but these require explicit units. When I scale the entire figure (\begin{tikzpicture} [scale=0.5]) it does not scale ...
2
votes
0answers
898 views

TikZ: the scale option changes font size

When I use \begin{tikzpicture}[scale=X] with X<1/X>1 then font size of text in the picture is also changed. I need to use [scale=2] or [scale=0.5] and to preserve font size (e.g. normalsize). ...
7
votes
2answers
156 views

How to extract coordinates in the current scope (before the coordinate transformation matrix is applied)

If I extract coordinates with \pgfgetlastxy{}{}, I get changing results depending on the transformations I've applied to my draw (rotation, scale): \documentclass[margin=0.5cm]{standalone} ...
1
vote
0answers
160 views

pictograms, Iconography, scalable shapes, custom nodes, shapes

Hy, I'm building up my own iconography, a set of pictograms that represent ideas so that i can connect them to illustrate more complex systems. I would like some suggestions of which is the best ...
4
votes
1answer
479 views

Problem with scaling used in \includegraphics

I have a question on scaling a graph when the graph is included using \includegraphics. A code snippet is below. \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} ...
6
votes
3answers
252 views

How to allow labels' anchors in TikZ to be affected by rotations without rotating the text itself?

I usually write macros when I need to draw many times a kind of figure. In the final document, I call the macro and then I always apply two transformations : a scale transformation to fit in the space ...
4
votes
1answer
296 views

Scale Axis in PGFPlots without changing orientation

I'm trying to plot a data matrix using pgfplots and a surface plot. The method described in this question worked well for me: Using pgfplots, how do I arrange my data matrix for a surface plot so ...
7
votes
1answer
223 views

How to scale a pgfplot in a tikzpicture correctly?

I created a figure in pgfplots and added some extra labels in a tikzfigure environment. Now it turns out I need to rescale the whole figure. Normally this can be done by adding scale=2 but here the ...
1
vote
1answer
112 views

Scale only dataset read from file without scaling whole graphics

I have datasets which vary strong in range. So i want to scale my dataset to adjust it to my template, so that the grids, axes and so on are identical with the neighbour-subfigures. What is the ...
2
votes
0answers
309 views

TikZ: scaling the tikz picture environment

If I scale the TikZ picture environment, everything should scale by a factor of x correct? If that is the case, why would some code not scale or scale incorrectly when it is in the environment? For ...
6
votes
1answer
156 views

What are these x and y scaling options for a tikzpicture for?

I've googled myself silly already, but I still can't really pinpoint it enough to reassure myself what exactly those options do: What does x=0.25cm in the MWE stand for? Does it stand for: "every cm ...
1
vote
1answer
225 views

Scaling Tikz picture without overlapping text

I have a simular issue to the question asked in : TikZ picture overlaps with text I have tried the solution provided by Jake. This makes that my picture fails to resize (scale) as i intend. Whether i ...
3
votes
1answer
182 views

Cant scale x-Axis to textwidth

I want to plot some measured values. The y-axis contains the the voltage and the x-axis time stamps. I used matlab2tikz to create this plot: If I want to plot the graph, the x-axis is not scaled to ...
4
votes
1answer
469 views

Scaling a multi-column TikZ/pgfplots groupplot to page width

I am trying to scale a pgfplots groupplot with multiple (and variable numbers of) subplots to match the \textwidth of a document. What I found is that there seems to be no direct relationship between ...
4
votes
0answers
516 views

Fitting TikZ picture in beamer: Difference between using \resizebox and \adjustbox? [closed]

\documentclass[10pt]{beamer} \usepackage{amsmath} \usepackage{amssymb} \usepackage[english]{babel} \usepackage{color} \usepackage{float} \usepackage[T1]{fontenc} ...
6
votes
1answer
310 views

Extracting x, y coordinates of an arbitrary point in TiKZ while using yscale and xscale

Inspired by Extract x, y coordinate of an arbitrary point in TikZ, I am trying to use the x coordinate of a point to draw another element. However, when I use the yscale and xscale commands, the ...
4
votes
2answers
202 views

Scaling tikz-cd labels

I'd like to scale a custom symbol drawn in tikz, such that it's the same size as surrounding text in a tikz-cd diagram. For example, in the following code I'd like the box to the left of A_2 to be ...
6
votes
2answers
202 views

Scaling the sieve of Eratosthenes in TikZ

Consider the following code, taken from Alain Matthes' answer here. Code \documentclass{article} \usepackage{tikz} \makeatletter \pgfutil@ifundefined{pgfmath@function@isprime}{% ...
5
votes
2answers
317 views

Argument to \input or \include statement?

I produce a lot of plots in Matlab which I export to TikZ with matlab2tikz. In matlab2tikz I can specify the plot width and height, for instance. This works out quite nicely, but as I write my ...
1
vote
1answer
52 views

Why does transform canvas change where the caption is?

I have a fairly large tikz diagram here: \documentclass[12pt]{amsart} \usepackage[all,cmtip]{xy} \usepackage{rotating, tikz} \usetikzlibrary{matrix,arrows} \title{None}% \begin{document} ...
6
votes
3answers
1k views

TikZ: different x, y scales but so that shapes maintain their aspects

I have some old pstricks code which I'm re-doing with TikZ. In my current picture, the x and y scales are different: \begin{tikzpicture}[xscale=1.8,yscale=4] However, this has the problem that ...
3
votes
1answer
165 views

Tikz Scaling and Positioning

I cannot scale the first picture. scale=0.6 does not work. Also I cannot vertically align the picture. I want top of text and top of figure are same. See figures in the following examples. ...
2
votes
1answer
272 views

How to automatically scale inline TikZ code in subscripts?

I want to use inline TikZ code to create my own subscript symbol. For example something like $V_{\tikz{ \draw [|->] (0,0) -- (2ex,0); }}$ The problem is that it is not scaled. The length of the ...
5
votes
1answer
502 views

\resizebox shifts tikzpicture up when in a subfloat environment

Why when I try to re-scale a tikz figure using \resizebox the baseline is shifted up (regardless of how small the scale factor is), and two horizontal floats are not aligned properly. ...
8
votes
2answers
277 views

Wrong place for hyperref link in scaled tikz picture

I have a TikZ picture with a node containing a minipage with an itemize environment; each item is a hyperref to other sections of the document. When scaling the image (for example with ...
10
votes
1answer
1k views

Scaling tikz mindmaps within a beamer frame

I recently discovered tikz and I fell in love with it! However, I am having some annoying issues when I try to include a tikz mindmap in beamer. Problem is that I can't manage to have the mindmap ...
4
votes
4answers
485 views

How to scale a tikz picture?

I am using \documentclass[slidestop,compress,mathserif,12pt,xcolor=dvipsnames]{beamer} \graphicspath{{images/}} \definecolor{LHCblue}{RGB}{4, 114, 255} \usecolortheme[named=LHCblue]{structure} ...
0
votes
1answer
170 views

Changing scale using TeXgraph

I'm using TeXgraph to create figures and stuff, being a bit lazy and not wanting to code everything. I chose to export the code into tikz to use with tikzpicture. The outcome is great if I don't have ...
7
votes
1answer
609 views

Beamer with Tikzpicture. How to change scale of picture and distance between lines of nodes?

I am a beginner in LaTeX, trying to convert a presentation in beamer. I am experiencing difficulties with the scale option that does not seem to work, and I cound not find a way to reduce slightly ...
2
votes
2answers
1k views

how to set the canvas and font size in TikZ?

I am using TikZ to draw standalone pictures using the PreviewEnvironment (which cuts the PDF size around the picture). I then import the PDF figure inside LaTeX using \includegraphics. Let say my ...
6
votes
1answer
804 views

LaTeX scaling tikzpicture does not work

The TikZ picture in the following code does not scale correctly. It overlaps with text. If I comment out transform canvas={scale=0.5} then it works correctly (but I would like to scale everything). ...
7
votes
2answers
538 views

Scale all TikZ images in a document by the same factor

Is it possible to scale all TikZ pictures in a document by the same factor globally? Something like \usepackage[scale=0.9]{tikz} doesn't work.
3
votes
1answer
1k views

Tikz's picture: out of the page margin [duplicate]

Possible Duplicate: How to scale a tikzpicture to \textwidth Shrink figure only when necessary? As you can see the third rectangle is out of the right margin...how can I fix this issue? ...
1
vote
1answer
1k views

Tikz's picture scaled and wrapped

I need to wrap the text around my tikz picture. But as you can see, scaling the picture give me problems about the position of the shaded axis between "pompa" and "turbina". How can i fix this ...
2
votes
1answer
312 views

Scaling tikzpicture with Babel spanish package

I have the following code: \documentclass[a4paper,10pt]{article} \usepackage[utf8x]{inputenc} \usepackage{tikz} \usetikzlibrary{matrix,shapes,arrows,positioning,chains} ...