Hot answers tagged

3

We can use R for this by retrieving the relevant data using the tq_get function from the tidyquant package and plotting the candlestick and moving average using ggplot, a function in the tidyverse collection of packages. This example largely follows Matt Dancho's vignette for his tidyquant package posted here: Charting with tidyquant \documentclass[a4paper,...


3

The team just commited a new gnuplot rule in the development branch of arara, so it might reach the general public in the upcoming maintenance release, yet to be scheduled. You can get the gnuplot rule from the repository and include the path in a global/local configuration (e.g, arararc.yaml, as described in the user manual). Then you can compile your plot ...


3

Thanks to the comments I have generated easily the Gnuplot figure with TikZ. I have used gnuplot raw option o addplot as follows, \documentclass[border=1mm]{standalone} \usepackage{amsmath} \usepackage{tikz,pgfplots} \pgfplotsset{width=11cm,compat=1.15} \begin{document} \centering \begin{tikzpicture} \begin{axis} [ legend pos=south east, ...


3

I went through this problem years ago. In my cases I wanted to make sure I my tikz/pgfplots could be done using axes as well as windows were capable of showing a graph paper background were able to handle multiple graphs at the same time Could handle more complicated functions Now simple functions, such as what you'd see in a high school are easily done ...


2

So the problem is due to the gnuplot software, just installing it won't be enough, it needs to be on Windows PATH. It can be done by checking the box Add gnuplot to PATH during the install procedure or add it manually like shown here


2

I had a similar problem. What I did is "externalise" the generation of the plots. You do this by including \usepgfplotslibrary{external} \tikzexternalize In your preamble. You have to call Latex with the additional options: -shell-escape. This will cause the compiler to start from scratch for each tikz-picture so your compilation will no longer ...


2

By default, Gnuplot is in enhanced mode, which means that strings are checked for formatting characters. You can for example use set label "x^{2+3}" at 1,3" resulting in a superscript (dy="-6.00px"): <tspan font-family="Arial" >x</tspan> <tspan font-family="Arial" font-size="9.6" dy="-6.00px">2+3</tspan> However, if you want to use ...


2

Prologue I guess you won't find many users here who use gnuplot with latex regularly. If you want to create plots that integrate well into your document you find alternatives which follow a more tex'ish approach with a larger user base like pgfplots. However it's not impossible to create high quality graphs with gnuplot and latex. I don't think that ...


1

As @muzimuzhi pointed out it was just a missing * There is a missing * in kqb(\b,\d,\k)=ifthenelse(\b==\d,(\k^2/(2 (\d+\k)^2)),).


1

So you are searching for something like the following? (I am not 100% sure if I have understood your question right). For details please have a look at the comments in the code. % used PGFPlots v1.16 % data files were provided at this link % <https://www.dropbox.com/sh/56fbfwmi4wcvicl/AABHpb-IpuOeOIEekNY-BkIWa?dl=0> \documentclass[border=5pt]{...


1

pgfplots along with pgfplotstable can be used for linear regression. The value of regression coefficients will be stored in \pgfplotstableregressiona and \pgfplotstableregressionb. See the code given below. Note that the data was sorted and saved into \res before applying regression. \documentclass[border=3mm]{standalone} \usepackage{pgfplots} \...


Only top voted, non community-wiki answers of a minimum length are eligible