Ticket #4719 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Have the error bar colour track the curve colour by default

Reported by: Russell Taylor Owned by: Russell Taylor
Priority: minor Milestone: Release 2.0
Component: MantidPlot Keywords:
Cc: Blocked By:
Blocking: #4469 Tester: Roman Tolchenov

Description

From Richard Heenan:

If I right click on a plot and choose properties, then change colours of lines, any error bars keep their original colours, any new error bars added after also have the original colour not the new one.

Change History

comment:1 Changed 9 years ago by Russell Taylor

  • Status changed from new to accepted

comment:2 Changed 9 years ago by Russell Taylor

In qtiplot (whose lead I always prefer to follow unless there’s a strong reason to deviate), error bars can be customized completely independently of lines or symbols (indeed they are entirely separate curve objects). You can see this if you plot from a table, or plot a bin with error bars, and bring up the dialog. Because of the way error bars on Mantid curves have been done, they cannot be customized at all from the dialog (though they can be from python now). There a ticket (4469) for the next iteration to sort this out. So that’s why error bars don’t automatically follow the line colour any more (after all, who’s to say that they should follow that rather than the symbol colour).

It was not intentional that they wouldn’t have the same colour as the line when they are first added though.

comment:3 Changed 9 years ago by Russell Taylor

Mantid curve error bar colours track the curve line colour....

...unless explicitly set to another colour (only possible via python at the moment). Re #4719. For other curves (e.g. from a table) the colour will initially match the curve line. These changes should be reviewed, and possibly amended, as part of #4469.

Changeset: a70d924765fb9842218432e01061aa2987a51caf

comment:4 Changed 9 years ago by Russell Taylor

  • Status changed from accepted to verify
  • Resolution set to fixed

comment:5 Changed 9 years ago by Roman Tolchenov

  • Status changed from verify to verifying
  • Tester set to Roman Tolchenov

comment:6 Changed 9 years ago by Roman Tolchenov

  • Status changed from verifying to closed

Confirmed that the error bar colour follows the colour of the curve.

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5566

Note: See TracTickets for help on using tickets.