From: wolf Date: Wed, 10 Mar 1999 11:48:09 +0000 (+0000) Subject: Run a loop backwards since otherwise gnuplot thinks the upper side is X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54d481e0887a22fc0a8ecc21a4e28160affa14e1;p=dealii-svn.git 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 --- 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