TeX - LaTeX Asked on August 11, 2021
This is my histogram:
documentclass[a4paper,11pt, twoside]{book}
usepackage{pgfplots}
pgfplotsset{width=7cm,compat=1.8}
usepackage{pgfplotstable}
renewcommand*{familydefault}{sfdefault}
begin{document}
begin{tikzpicture}
centering
begin{axis}
[
%%%%
ybar, axis on top, x tick label style={rotate=45,anchor=east},
%%%%
title={},
%%%%
height=6cm, width=12cm,
%%%%
bar width=0.1cm,
% ymajorgrids, tick align=inside,
% major grid style={draw=white},
% enlarge y limits={value=.1,upper},
ymin=0, ymax=30,
%%%%
axis x line*=bottom,
%%%%
axis y line*=left,
%%%%
y axis line style={opacity=0},
%%%%
tickwidth=0pt,
%%%%
enlarge x limits=true,
%%%%
%%%%
legend style={
at={(0.5,-0.2)},
anchor=north,
legend columns=-1,
/tikz/every even column/.append style={column sep=0.5cm}
},
%%%%
ylabel={Amount issued EUR bn},
symbolic x coords={
Korea,
Hungary,
Luxemburg,
Sweden,
Indonesia,
Poland,
Hong-Kong,
Chile,
Ireland,
Italy,
Belgium,
Netherlands,
Germany,
France},
xtick=data,
% nodes near coords={
% pgfmathprintnumber[precision=0]{pgfplotspointmeta}
% }
]
addplot [draw=none, fill=blue!30] coordinates {
(Korea,0.5)
(Hungary, 1.5)
(Luxemburg,2)
(Sweden,2.2)
(Indonesia,2.5)
(Poland,3.8)
(Hong-Kong,4)
(Chile,5.1)
(Ireland, 6)
(Italy, 8)
(Belgium, 8.5)
(Netherlands, 8.8)
(Germany, 11.8)
(France, 27.5)
};
legend{footnotesize Figure 1: Main sovereign issuers of green bonds (amount issued in billions of euros), Source: Bloomberg (March 3, 2021). }
end{axis}
end{tikzpicture}
end{document}
I would like to make just one of those bars of a different colour, and to put down the legend a bit (now it is overlapping with the names of the countries). How could I do it?
Any suggestion is appreciated.
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP