i want to create a not continuous plot where it is possible to "jump" from 10% to e.g. 50% without a continuous scaling. I think i got most of the solution myself and will post it below. The "problem" is that i cant define the first plot group as ymin=0,ymax=6, and the second group as ymin=45,ymax=80,.
When i define the first range, it displaces this part of the plot to the very right side and part of it out of the plot (and i dont unterstand why).
See this picture:
When i define the second range, the plot simply "disappears", and only a white space remains on this part of the document.
Currently this looks like:
What is nearly what i want to show except that i want on the "bottom part" right part of the plot only 4 bars with the "same" height as they differ on the upper part and on the left bottom part it be possible to actually see different heighs of the bars and not like the current look. Of course in the upper part the left bars should not be shown as they have to small values.
I hope you can help me with this issue
\documentclass{ifacconf}
\usepackage[round]{natbib}
\usepackage{graphicx}
\usepackage{pgfplots}
\usetikzlibrary{pgfplots.groupplots}
\usepackage{tikz-timing}
\usepackage{listings}
\usepackage{xcolor}
\definecolor{ForestGreen}{RGB}{34,139,34}
\definecolor{Gold}{RGB}{218,165,32}
\definecolor{MediumBlue}{RGB}{25,25,205}
\usepackage{capt-of}
\begin{document}
\pgfplotsset{
every non boxed x axis/.style={}
}
\begin{tikzpicture}
\begin{groupplot}[
group style={
group name=my fancy plots,
group size=1 by 2,
xticklabels at=edge bottom,
vertical sep=0pt
},
width=9.5cm, ybar,
enlarge
x limits=0.5,
%ylabel={\#participants},
symbolic x coords={\# Variables (\%),Pipeline Utilization (\%)}, %efficiency
xtick=data,
%nodes near coords,
%nodes near coords align={vertical},
%every node near coord/.append style={font=\small},
legend style={at={(0.25,0.69)},anchor=south, cells={align=left}}, ]
\nextgroupplot[%ymin=45,ymax=80,
ytick={60,80},
axis x line=top,
axis y discontinuity=crunch,
ybar,
bar width=.68cm,
nodes near coords,
nodes near coords align={vertical},
every node near coord/.append style={font=\small},
height=4.5cm]
\addplot [color=purple, fill = purple,]coordinates {(\# Variables (\%),5.14) (Pipeline Utilization (\%),62.05)};
\addplot [color=orange, fill = orange,]coordinates {(\# Variables (\%),4.91) (Pipeline Utilization (\%),63.53)};
\addplot [color=ForestGreen, fill = ForestGreen,]coordinates {(\# Variables (\%),0.27) (Pipeline Utilization (\%),65.51)};
\addplot [color=MediumBlue, fill = MediumBlue,]coordinates {(\# Variables (\%),0.33) (Pipeline Utilization (\%),66.75)};
\nextgroupplot[%ymin=0,ymax=6,
ytick={0},
axis x line=bottom,
ybar,
bar width=.68cm,
height=2.0cm]
\addplot [color=purple, fill = purple,]coordinates {(\# Variables (\%),5.14) (Pipeline Utilization (\%),62.05)};
\addplot [color=orange, fill = orange,]coordinates {(\# Variables (\%),4.91) (Pipeline Utilization (\%),63.53)};
\addplot [color=ForestGreen, fill = ForestGreen,]coordinates {(\# Variables (\%),0.27) (Pipeline Utilization (\%),65.51)};
\addplot [color=MediumBlue, fill = MediumBlue,]coordinates {(\# Variables (\%),0.33) (Pipeline Utilization (\%),66.75)};
\end{groupplot}
\end{tikzpicture}
\end{document}

