From 54d481e0887a22fc0a8ecc21a4e28160affa14e1 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 10 Mar 1999 11:48:09 +0000 Subject: [PATCH] Run a loop backwards since otherwise gnuplot thinks the upper side is the lower side and draws the diagram in strange colors. git-svn-id: https://svn.dealii.org/trunk@983 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/histogram.cc | 29 ++++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/deal.II/deal.II/source/numerics/histogram.cc b/deal.II/deal.II/source/numerics/histogram.cc index 608e37ed56..1862ec14d4 100644 --- a/deal.II/deal.II/source/numerics/histogram.cc +++ b/deal.II/deal.II/source/numerics/histogram.cc @@ -200,43 +200,48 @@ void Histogram::write_gnuplot (ostream &out) const // otherwise create a whole 3d plot // for the data. use th patch method // of gnuplot for this - for (unsigned int i=0; i=0; --i) { for (unsigned int n=0; n(intervals.size())-1 ? + y_values[i+1] : + y_values[i] + (y_values[i]-y_values[i-1])) << ' ' << intervals[i][n].content << endl << intervals[i][n].right_point << ' ' - << y_values[i] + << (i(intervals.size())-1 ? + y_values[i+1] : + y_values[i] + (y_values[i]-y_values[i-1])) << ' ' << intervals[i][n].content << endl; - + out << endl; - for (unsigned int n=0; n