
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{pgfplots,tikz}\usepackage{caption}\DeclareCaptionLabelSeparator{fullstop}{.\quad}\captionsetup[figure]{labelsep=fullstop}\pgfplotsset{width=120mm}\usepackage{subcaption}\begin{document}\begin{subfigure}{0.5\textwidth}\begin{tikzpicture}\begin{axis}[color=black,scale only axis,xmin=0,xmax=24,%xtick={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24},xtick={0,4,8,12,24}, %%%<------------- herexlabel=\ {Time},ymin=0,ymax=10,ytick={0,1,2,3,4,5,6,7,8,9,10},yticklabels={0,1,2,3,4,5,6,7,8,9,10},ylabel=\ {log(Cfu/cm$^{2}$)},y axis line style={black},ytick style={black},yticklabel style={black},axis x line*=bottom,axis y line*=left,tick align = outside,every axis legend/.append style={at = {(.5,-.2)},anchor = north,% legend columns=-1, % to display legends in one line but do you really want this?legend cell align = left,draw = none,legend columns = 2,},]\addplot [color=black,solid,