forked from nschloe/tikzplotlib
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide invisible axes while still displaying colorbars
This at least allows a workaround for nschloe#606
- Loading branch information
1 parent
450712b
commit 34ff73c
Showing
4 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
\begin{tikzpicture} | ||
|
||
\definecolor{darkgray176}{RGB}{176,176,176} | ||
|
||
\begin{groupplot}[group style={group size=1 by 4}] | ||
\nextgroupplot[ | ||
colorbar horizontal, | ||
colormap={mymap}{[1pt] | ||
rgb(0pt)=(0,1,1); | ||
rgb(1pt)=(1,0,1) | ||
}, | ||
hide x axis, | ||
hide y axis, | ||
point meta max=1, | ||
point meta min=0, | ||
tick align=outside, | ||
tick pos=left, | ||
x grid style={darkgray176}, | ||
xmin=-0.5, xmax=1.5, | ||
xtick style={color=black}, | ||
y dir=reverse, | ||
y grid style={darkgray176}, | ||
ymin=-0.5, ymax=0.5, | ||
ytick style={color=black} | ||
] | ||
\end{groupplot} | ||
|
||
\end{tikzpicture} |