added pgfplots compatibiliy