|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
How to reflect an objectHi,
I have the following figure. All I need to do now, is to reflect the right-hand version. Any suggestions for doing this easily? %! program = pdflatex \documentclass[]{article} \usepackage{tikz,pgfbaseimage} \usepackage{amssymb,amsmath,pifont,latexsym} \usepackage{fancybox} \usetikzlibrary{shapes,arrows,calc,snakes,scopes} \usepackage[textwidth = 12.93cm, textheight = 12.6cm, screen,centering] {geometry} \usepackage[active,tightpage,pdftex]{preview} \PreviewEnvironment{tikzpicture} \definecolor{uvablue}{RGB}{17, 59, 99} \definecolor{uvaorange}{RGB}{187, 114, 42} \definecolor{uvabetween}{RGB}{102, 86, 70} \begin{document} \begin{preview} \begin{tikzpicture}[scale = 1] \fill[uvablue] (-0.1, -0.1) rectangle +(1.6, 3.2); \fill[uvaorange] (0.8, 0) arc(180:90:0.1cm) -- (1, 0.1) arc(-90:0:0.1cm) -- (1.1, 0.45) arc(-90:90:0.015cm and 0.03cm) -- (1.1, 0.51) arc(-90:90:0.015cm and 0.03cm) -- (1.1, 1) arc(180:90:0.05cm) -- (1.3, 1.05) arc(-90:0:0.05cm) -- (1, 1.8) arc(210:120:0.05cm) .. controls (1.05cm, 2.2cm) and (0.9cm, 2.3cm) .. (0.7, 2.5) .. controls (0.5, 2.7) .. (0.3, 2.7) arc(270:180:0.3cm) -- (0, 3) -- (1.5, 3) -- (1.5, 0) -- cycle; {[xshift = 1.5cm] \fill[uvablue] (-0.1, -0.1) rectangle +(1.6, 3.2); \fill[uvaorange] (0.8, 0) arc(180:90:0.1cm) -- (1, 0.1) arc(-90:0:0.1cm) -- (1.1, 0.45) arc(-90:90:0.015cm and 0.03cm) -- (1.1, 0.51) arc(-90:90:0.015cm and 0.03cm) -- (1.1, 1) arc(180:90:0.05cm) -- (1.3, 1.05) arc(-90:0:0.05cm) -- (1, 1.8) arc(210:120:0.05cm) .. controls (1.05cm, 2.2cm) and (0.9cm, 2.3cm) .. (0.7, 2.5) .. controls (0.5, 2.7) .. (0.3, 2.7) arc(270:180:0.3cm) -- (0, 3) -- (1.5, 3) -- (1.5, 0) -- cycle; } \end{tikzpicture} \end{preview} \end{document} _____________________________ Professor Michael Kubovy University of Virginia Department of Psychology USPS: P.O.Box 400400 Charlottesville, VA 22904-4400 Parcels: Room 102 Gilmer Hall McCormick Road Charlottesville, VA 22903 Office: B011 +1-434-982-4729 Lab: B019 +1-434-982-4751 Fax: +1-434-982-4766 WWW: http://www.people.virginia.edu/~mk9y/ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: How to reflect an objectHi Michael,
I think the easiest way is to use a reflect box: \reflectbox{ \begin{tizkpicture}[scale=1] ... \end{tikzpicture} } Sebastian Michael Kubovy a écrit : > Hi, > > I have the following figure. All I need to do now, is to reflect the > right-hand version. Any suggestions for doing this easily? > > %! program = pdflatex > > \documentclass[]{article} > \usepackage{tikz,pgfbaseimage} > \usepackage{amssymb,amsmath,pifont,latexsym} > \usepackage{fancybox} > \usetikzlibrary{shapes,arrows,calc,snakes,scopes} > \usepackage[textwidth = 12.93cm, textheight = 12.6cm, screen,centering] > {geometry} > \usepackage[active,tightpage,pdftex]{preview} > \PreviewEnvironment{tikzpicture} > > \definecolor{uvablue}{RGB}{17, 59, 99} > \definecolor{uvaorange}{RGB}{187, 114, 42} > \definecolor{uvabetween}{RGB}{102, 86, 70} > > \begin{document} > \begin{preview} > \begin{tikzpicture}[scale = 1] > \fill[uvablue] (-0.1, -0.1) rectangle +(1.6, 3.2); > \fill[uvaorange] (0.8, 0) arc(180:90:0.1cm) -- (1, 0.1) > arc(-90:0:0.1cm) -- (1.1, 0.45) arc(-90:90:0.015cm and 0.03cm) -- > (1.1, 0.51) arc(-90:90:0.015cm and 0.03cm) -- (1.1, 1) > arc(180:90:0.05cm) -- (1.3, 1.05) arc(-90:0:0.05cm) -- (1, 1.8) > arc(210:120:0.05cm) .. controls (1.05cm, 2.2cm) and (0.9cm, > 2.3cm) .. (0.7, 2.5) .. controls (0.5, 2.7) .. (0.3, 2.7) > arc(270:180:0.3cm) -- (0, 3) -- (1.5, 3) -- (1.5, 0) -- cycle; > {[xshift = 1.5cm] > \fill[uvablue] (-0.1, -0.1) rectangle +(1.6, 3.2); > \fill[uvaorange] (0.8, 0) arc(180:90:0.1cm) -- (1, 0.1) > arc(-90:0:0.1cm) -- (1.1, 0.45) arc(-90:90:0.015cm and 0.03cm) -- > (1.1, 0.51) arc(-90:90:0.015cm and 0.03cm) -- (1.1, 1) > arc(180:90:0.05cm) -- (1.3, 1.05) arc(-90:0:0.05cm) -- (1, 1.8) > arc(210:120:0.05cm) .. controls (1.05cm, 2.2cm) and (0.9cm, > 2.3cm) .. (0.7, 2.5) .. controls (0.5, 2.7) .. (0.3, 2.7) > arc(270:180:0.3cm) -- (0, 3) -- (1.5, 3) -- (1.5, 0) -- cycle; > } > \end{tikzpicture} > \end{preview} > > \end{document} > > > _____________________________ > Professor Michael Kubovy > University of Virginia > Department of Psychology > USPS: P.O.Box 400400 Charlottesville, VA 22904-4400 > Parcels: Room 102 Gilmer Hall > McCormick Road Charlottesville, VA 22903 > Office: B011 +1-434-982-4729 > Lab: B019 +1-434-982-4751 > Fax: +1-434-982-4766 > WWW: http://www.people.virginia.edu/~mk9y/ > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > pgf-users mailing list > pgf-users@... > https://lists.sourceforge.net/lists/listinfo/pgf-users > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: How to reflect an objectLe 7 sept. 2009 à 22:06, Sebastián Peña Saldarriaga a écrit : > Hi Michael, > I think the easiest way is to use a reflect box: > \reflectbox{ > \begin{tizkpicture}[scale=1] > ... > \end{tikzpicture} > } Hi, I prefer this : \begin{tikzpicture}[cm={-1,0,0,1,(0,0)}] \fill[uvablue] (-0.1, -0.1) rectangle +(1.6, 3.2); \fill[uvaorange] (0.8, 0) arc(180:90:0.1cm) -- (1, 0.1) arc(-90:0:0.1cm) -- (1.1, 0.45) arc(-90:90:0.015cm and 0.03cm) -- (1.1, 0.51) arc(-90:90:0.015cm and 0.03cm) -- (1.1, 1) arc(180:90:0.05cm) -- (1.3, 1.05) arc(-90:0:0.05cm) -- (1, 1.8) arc(210:120:0.05cm) .. controls (1.05cm, 2.2cm) and (0.9cm, 2.3cm) .. (0.7, 2.5) .. controls (0.5, 2.7) .. (0.3, 2.7) arc(270:180:0.3cm) -- (0, 3) -- (1.5, 3) -- (1.5, 0) -- cycle; {[xshift = 1.5cm] \fill[uvablue] (-0.1, -0.1) rectangle +(1.6, 3.2); \fill[uvaorange] (0.8, 0) arc(180:90:0.1cm) -- (1, 0.1) arc(-90:0:0.1cm) -- (1.1, 0.45) arc(-90:90:0.015cm and 0.03cm) -- (1.1, 0.51) arc(-90:90:0.015cm and 0.03cm) -- (1.1, 1) arc(180:90:0.05cm) -- (1.3, 1.05) arc(-90:0:0.05cm) -- (1, 1.8) arc(210:120:0.05cm) .. controls (1.05cm, 2.2cm) and (0.9cm, 2.3cm) .. (0.7, 2.5) .. controls (0.5, 2.7) .. (0.3, 2.7) arc(270:180:0.3cm) -- (0, 3) -- (1.5, 3) -- (1.5, 0) -- cycle; } \end{tikzpicture} Best Regards Alain Matthes ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: How to reflect an objectHi,
Thanks for both replies, but neither achieves exactly what I want. I am trying to achieve this effect: The following is close (using Alain's suggestion), but I don't know how to close the gap: %! program = pdflatex \documentclass{minimal} \usepackage{tikz,pgfbaseimage} \usepackage[textwidth = 12.93cm, textheight = 12.6cm, screen,centering]{geometry} \usepackage[active,tightpage,pdftex]{preview} \PreviewEnvironment{tikzpicture} \definecolor{uvablue}{RGB}{17, 59, 99} \definecolor{uvaorange}{RGB}{187, 114, 42} \definecolor{uvabetween}{RGB}{102, 86, 70} \begin{document} \begin{preview} \begin{tikzpicture}[scale = 1] \fill[uvablue] (-0.1, -0.1) rectangle +(1.6, 3.2); \fill[uvaorange] (0.8, 0) arc(180:90:0.1cm) -- (1, 0.1) arc(-90:0:0.1cm) -- (1.1, 0.45) arc(-90:90:0.015cm and 0.03cm) -- (1.1, 0.51) arc(-90:90:0.015cm and 0.03cm) -- (1.1, 1) arc(180:90:0.05cm) -- (1.3, 1.05) arc(-90:0:0.05cm) -- (1, 1.8) arc(210:120:0.05cm) .. controls (1.05cm, 2.2cm) and (0.9cm, 2.3cm) .. (0.7, 2.5) .. controls (0.5, 2.7) .. (0.3, 2.7) arc(270:180:0.3cm) -- (0, 3) -- (1.5, 3) -- (1.5, 0) -- cycle; \end{tikzpicture} \begin{tikzpicture}[scale = 1, cm={-1,0,0,1,(0,0)}] \fill[uvablue] (-0.1, -0.1) rectangle +(1.6, 3.2); \fill[uvaorange] (0.8, 0) arc(180:90:0.1cm) -- (1, 0.1) arc(-90:0:0.1cm) -- (1.1, 0.45) arc(-90:90:0.015cm and 0.03cm) -- (1.1, 0.51) arc(-90:90:0.015cm and 0.03cm) -- (1.1, 1) arc(180:90:0.05cm) -- (1.3, 1.05) arc(-90:0:0.05cm) -- (1, 1.8) arc(210:120:0.05cm) .. controls (1.05cm, 2.2cm) and (0.9cm, 2.3cm) .. (0.7, 2.5) .. controls (0.5, 2.7) .. (0.3, 2.7) arc(270:180:0.3cm) -- (0, 3) -- (1.5, 3) -- (1.5, 0) -- cycle; \end{tikzpicture} \end{preview} \end{document} On Sep 7, 2009, at 4:45 PM, Alain Matthes wrote:
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: How to reflect an objectHi all,
I've solved the problem. It's not elegant, but it's not brute-force either. %! program = pdflatex \documentclass{minimal} \usepackage{tikz,pgfbaseimage} \usepackage[textwidth = 12.93cm, textheight = 12.6cm, screen,centering]{geometry} \usepackage[active,tightpage,pdftex]{preview} \PreviewEnvironment{tikzpicture} \definecolor{uvablue}{RGB}{17, 59, 99} \definecolor{uvaorange}{RGB}{187, 114, 42} \definecolor{uvabetween}{RGB}{102, 86, 70} \begin{document} \begin{preview} \begin{tikzpicture}[scale = 10] \fill[uvablue] (-0.1, -0.1) rectangle +(3.2, 3.2); \filldraw[uvaorange] (0.75, 0) arc(180:90:0.25cm) -- (1, 0.25) arc(-90:0:0.1cm) -- (1.1, 0.65) arc(-90:90:0.015cm and 0.03cm) -- % lip (1.1, 0.71) arc(-90:90:0.015cm and 0.03cm) -- % lip (1.1, 0.9) arc(180:90:0.15cm) -- (1.3, 1.05) arc(-90:0:0.05cm) -- (1, 1.8) arc(210:120:0.05cm) .. controls (0.95cm, 2.4cm) and (0.55cm, 2.65cm) .. (0.3, 2.7) arc(270:180:0.3cm) -- (0, 3) -- (1.5, 3) -- (1.5, 0) -- cycle; \begin{scope}[xshift = 3cm] \filldraw[uvaorange, cm={-1,0,0,1,(0,0)}] (0.75, 0) arc(180:90:0.25cm) -- (1, 0.25) arc(-90:0:0.1cm) -- (1.1, 0.65) arc(-90:90:0.015cm and 0.03cm) -- % lip (1.1, 0.71) arc(-90:90:0.015cm and 0.03cm) -- % lip (1.1, 0.9) arc(180:90:0.15cm) -- (1.3, 1.05) arc(-90:0:0.05cm) -- (1, 1.8) arc(210:120:0.05cm) .. controls (0.95cm, 2.4cm) and (0.55cm, 2.65cm) .. (0.3, 2.7) arc(270:180:0.3cm) -- (0, 3) -- (1.5, 3) -- (1.5, 0) -- cycle; \end{scope} \end{tikzpicture} \end{preview} \end{document} On Sep 7, 2009, at 5:41 PM, Michael Kubovy wrote:
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
| Free embeddable forum powered by Nabble | Forum Help |