Commits

Pam Harris authored and Ville Suoranta committed cd38d84c275 Merge
Pull request #722: CAS-7164 Show coloraxis values in plotms legend

Merge in CASA/casa6 from CAS-7164 to master * commit '64dc84a04bba5050d988cc5f31843eeb6e7f13b7': Set plotms version in build.conf Update plotms branch wheel in build.conf Add param to plot data colorize map to return whether map is shared Update plotms branch wheel to latest Update plotms branch wheel version Update plotms branch wheel version Set build plotms branch wheel Add colorize map to PlotBinnedData for legend

casatools/src/code/graphics/GenericPlotter/PlotData.h

Modified
230 230 // ABSTRACT METHODS //
231 231
232 232 // Returns the total number of bins that the data is in.
233 233 virtual unsigned int numBins() const = 0;
234 234
235 235 // Returns the bin index number for the given index. MUST be between 0 and
236 236 // numBins().
237 237 virtual unsigned int binAt(unsigned int i) const = 0;
238 238 virtual unsigned int connectBinAt(unsigned int i) const {
239 239 return binAt(i); };
240 -
241 -
240 +
241 + // Return map of colorized values to color, and whether all plots use the same color list
242 + virtual std::map<std::string, std::string> getColorizeMap(bool& shared_colormap) const = 0;
243 +
242 244 // IMPLEMENTED METHODS //
243 245
244 246 // Returns true if the data is binned, false otherwise.
245 247 virtual bool isBinned() const { return numBins() > 1; }
246 248 };
247 249 INHERITANCE_POINTER(PlotBinnedData, PlotBinnedDataPtr, PlotPointData,
248 250 PlotDataPtr, PlotData, PlotDataPtr)
249 251
250 252
251 253 // casacore::Data for raster plots, which can be thought of as three-dimensional. Used

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut