Graphics, Figures & Tables ⇒ vertical chart
vertical chart
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Re: vertical chart
You can always make a figure in LaTeX, but to do what you have in attachment would take you forever to make, and it would be static.
Therefore, you are better of in other software, and include it in your text document.
Cheers
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
vertical chart
I sometimes wonder where you get your insights from.fatra2 wrote:Therefore, you are better of in other software, and include it in your text document.
This can be done very easy with datatool, pgfplots (based on pgf/tikZ) or pstricks. You may take a look at example galleries [1,2]. I'm sure you will find what you need and get along with it.krislodz wrote:Is it possible to create vertical or horizontal charts in Latex? Something like this […]
[1] TikZ and PGF examples
[2] /PSTricks/Examples/Charts/chart
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: vertical chart
,,,,,,,
5, 1, 9, 4, 8, 3, 2, 5
- Attachments
-
- graphs.tex
- (811 Bytes) Downloaded 648 times
Re: vertical chart
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
vertical chart
Include the (auto-)pst-pdf package. It lets you compile pstricks code with the pdflatex compiler engine. Pay special attention to the hints in the manual about shell escape (forum search).krislodz wrote:[…] i cannot use pdflatex on it, so I guess I have to include eps generated to my document?
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: vertical chart
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
vertical chart
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
vertical chart
,,,,,,,
5, 1, 9, 4, 8, 3, 2, 5
Current graphs.tex:
Code: Select all
\documentclass[spanish]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}
\usepackage{ifplatform}
\usepackage{pst-pdf}
\usepackage{xkeyval}
\usepackage[crop=off]{auto-pst-pdf}
\deactivatetilden
\usepackage{pst-bar,pst-all,pstricks-add}
\begin{document}
\psset{xunit=1cm,yunit=1cm}%
\renewcommand*\psbarlabelsep{50pt}
\begin{pspicture}(0,0)(10,9)%
\psgrid[yunit=1cm,gridlabels=0,subgriddiv=0,griddots=30](0,0)(10,8.1)%
\psaxes[labels=all,ticks=x](0,0)(10,9)%
\readpsbardata{\graphs}{graphs.dat}%
\psbarchart[labelFontSize=2pt,shadow=true,barstyle=blue,barcolsep=0.3,orientation=horizontal]{\graphs}%
\rput(-1.4,7.5){Scatter Graphs}
\rput(-1.7,6.5){Frequency Polygon}
\rput(-1.25,5.5){Line Graphs}
\rput(-1.75,4.5){Comp. Pie Graphs}
\rput(-1.2,3.5){Pictograms}
\rput(-1.2,2.5){Histograms}
\rput(-1.2,1.5){Pie Graphs}
\rput(-1.2,0.5){Bar Charts}
\end{pspicture}
\end{document}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
vertical chart
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10