mirror of
				https://github.com/aportelli/LatAnalyze.git
				synced 2025-10-31 14:54:33 +00:00 
			
		
		
		
	plot fixes when reploting the same Plot object
This commit is contained in:
		| @@ -779,18 +779,25 @@ ostream & Latan::operator<<(ostream &out, const Plot &plot) | |||||||
|         out << "yMin = " << plot.options_.scale[y].min << endl; |         out << "yMin = " << plot.options_.scale[y].min << endl; | ||||||
|         out << "yMax = " << plot.options_.scale[y].max << endl; |         out << "yMax = " << plot.options_.scale[y].max << endl; | ||||||
|     } |     } | ||||||
|     if (!plot.options_.title.empty()) |     out << "unset xrange" << endl; | ||||||
|     { |  | ||||||
|         out << "set title '" << plot.options_.title << "'" << endl; |  | ||||||
|     } |  | ||||||
|     if (plot.options_.scaleMode[x] & Plot::Scale::manual) |     if (plot.options_.scaleMode[x] & Plot::Scale::manual) | ||||||
|     { |     { | ||||||
|         out << "set xrange [xMin:xMax]" << endl; |         out << "set xrange [xMin:xMax]" << endl; | ||||||
|     } |     } | ||||||
|  |     else | ||||||
|  |     { | ||||||
|  |         out << "set xrange [:]" << endl; | ||||||
|  |     } | ||||||
|  |     out << "unset yrange" << endl; | ||||||
|     if (plot.options_.scaleMode[y] & Plot::Scale::manual) |     if (plot.options_.scaleMode[y] & Plot::Scale::manual) | ||||||
|     { |     { | ||||||
|         out << "set yrange [yMin:yMax]" << endl; |         out << "set yrange [yMin:yMax]" << endl; | ||||||
|     } |     } | ||||||
|  |     else | ||||||
|  |     { | ||||||
|  |         out << "set yrange [:]" << endl; | ||||||
|  |     } | ||||||
|  |     out << "unset log" << endl; | ||||||
|     if (plot.options_.scaleMode[x] & Plot::Scale::log) |     if (plot.options_.scaleMode[x] & Plot::Scale::log) | ||||||
|     { |     { | ||||||
|         out << "set log x" << endl; |         out << "set log x" << endl; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user