Hot answers tagged

2

Use ybar=0pt instead ybar interval. Adjust the width of the bars to your needs. Set width and height for the axis environment. Remove legend columns=-1. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.13} \begin{document} \begin{center} \begin{tikzpicture} \begin{axis}[ width=\textwidth,height=75mm,% <- added x ...


2

The colors, markers and line styles used by pgfplots are defined in so called cycle lists. There are several such defined already, see the pgfplots manual section 4.7.7 Cycle Lists – Options Controlling Line Styles. If none of the existing ones are satisfactory, you can define your own cycle lists, see my answer to pgfplots adding unwanted dashed lines for ...


2

This is due to a bug in pgfplots. I will take care that it gets addressed eventually. The problem is that the numbers are so close to 0 that the TeX-based arithmetic runs into some number range issues (while computing the intermediate result of exp(-4.08893e7)). That said, the argument domain=0:1000 for you function in question does not contain anything ...


2

First of all set compat: \pgfplotsset{compat=1.13} Current version is 1.13. AFAIK you have to use at least version 1.11, if you want to use xbar stacked together with nodes near coords. Use ytick={0,...,5} instead ytick=data or maybe better use all y coordinates for the first plot: \addplot[findOptimalPartition,fill] coordinates {(400,0) (0,1) (0,2) (...


1

I don't know how to achieve that using pgfplot, but with simple tikz you could adapt this (using a foreach loop): \documentclass{article} \usepackage{xcolor} \usepackage{tikz} \definecolor{findOptimalPartition}{HTML}{D7191C} \definecolor{storeClusterComponent}{HTML}{FDAE61} \definecolor{dbscan}{HTML}{ABDDA4} \definecolor{constructCluster}{HTML}{2B83BA} \...



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