bugGNU Octave - Bugs: bug #41944, For bar charts with...

 
 

bug #41944: For bar charts with yscale="log" -> basevalue = 1

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Mon 24 Mar 2014 01:04:49 PM UTC  
 
Category: PlottingSeverity: 2 - Minor
Priority: 3 - LowItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Ben ABbottOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Thu 22 Dec 2016 11:39:50 PM UTC, comment #9:

I checked in an extension of the proposed patch which silences the ugly warnings (http://hg.savannah.gnu.org/hgweb/octave/rev/f2d2edab5c66). Closing report.

Rik <rik5>
Project Administrator
Sun 18 Dec 2016 07:48:16 PM UTC, comment #8:

I've tested Rik's patch from comment #7 in an Octave built from the current dev branch (hg-id b150be19734d). The resulting log bar plot looks fine to me, I will attach a screenshot. But I do see a lot of warnings (as expected by Rik) when running the script from comment #1:
Could we silence those warnings for this use case somehow?

(file #39269)

Hartmut <hardy>
Thu 15 Dec 2016 09:40:22 PM UTC, comment #7:

Try the attached patch on dev. It throws a lot of warnings about negative values on log plots, but it does produce the right plot and basevalue outputs.

(file #39244)

Rik <rik5>
Project Administrator
Thu 15 Dec 2016 02:18:30 PM UTC, comment #6:

This issue is still present in Octave 4.2.0.

The demo script from comment #1 still produces a wrong log bar plot.

Hartmut <hardy>
Tue 25 Mar 2014 03:07:19 AM UTC, comment #5:

With basevalue = -1 and yscale = 'log', the bar chart doesn't display correctly and gives the error below.

The public bar chart properties are below.

Ben Abbott <bpabbott>
Project Member
Tue 25 Mar 2014 01:09:31 AM UTC, comment #4:

I suppose you could try

and sift through the properties to see if there is anything with 'basevalue' in the name. I checked the documentation and it isn't there for the bar series object.

Did the bar chart with -1 basevalue display correctly with a log axis?

Rik <rik5>
Project Administrator
Tue 25 Mar 2014 12:12:13 AM UTC, comment #3:

The results are below.

Does that imply that the bar() has an private "basevaluemode" property?

Ben Abbott <bpabbott>
Project Member
Mon 24 Mar 2014 10:55:34 PM UTC, comment #2:

Is this as simple as adding a listener in private/__bar__.m on the y-axis that resets the basevalue when the scale changes from linear to log? Or should we be doing something better?

Does Matlab change the basevalue even when it has been modified by the user? Does it change it back if you switch to 'linear' again?

Rik <rik5>
Project Administrator
Mon 24 Mar 2014 01:09:14 PM UTC, comment #1:

I've attached a simple script (which can be modified and used as a demo). The resulting plot and console output from Matlab are attached.

(file #31022, file #31023)

Ben Abbott <bpabbott>
Project Member
Mon 24 Mar 2014 01:04:49 PM UTC, original submission:

For log-scale bar charts Matlab sets the basevalue to 1 (for linear the basevalue = 0).

Presently Octave sets the basevalue to zero in each case.

Ben Abbott <bpabbott>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #39244:  basevalue.patch added by rik5 (1KiB - application/x-download)
file #31022:  bar_log.m added by bpabbott (275B - application/octet-stream)
file #31023:  bar_log.pdf added by bpabbott (4KiB - application/pdf)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by hardy (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by bpabbott (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 10 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 22 Dec 2016 11:39:50 PM UTCrik5StatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Sun 18 Dec 2016 07:48:16 PM UTChardyAttached File-=>Added log_bar_Octave403+_withPatch.png, #39269
    Thu 15 Dec 2016 09:40:22 PM UTCrik5Attached File-=>Added basevalue.patch, #39244
      Severity3 - Normal=>2 - Minor
      Priority5 - Normal=>3 - Low
      StatusNeed Info=>Ready For Test
    Mon 24 Mar 2014 10:55:34 PM UTCrik5StatusNone=>Need Info
    Mon 24 Mar 2014 01:09:14 PM UTCbpabbottAttached File-=>Added bar_log.m, #31022
      Attached File-=>Added bar_log.pdf, #31023

    Back to the top


    Powered by Savane 3.1-cleanup1