bugGNU Octave - Bugs: bug #41154, x-axis tick labels can overlap in...

 
 

bug #41154: x-axis tick labels can overlap in gnuplot figures

Submitter:  None
Submitted:  Wed 08 Jan 2014 10:15:12 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Wont Fix Assigned to:  None
Originator Name:  Saul Mtakula Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 31 Jul 2015 11:42:31 AM UTC, comment #5: 

Closing bug with status won't fix, following suit with other similar gnuplot-specific bugs such as bug #31610 and bug #34148. The solution is to use one of the OpenGL-based plotting toolkits instead.

Mike Miller <mtmiller>
Group Member
Sun 31 May 2015 06:23:44 PM UTC, comment #4: 

This is not really a problem with the rlocus function, it is a problem with the gnuplot plotting toolkit.

The following simpler example demonstrates the behavior, at least with gnuplot 4.6.6 on Linux:


graphics_toolkit ("gnuplot");
subplot (2, 2, 1);
x = linspace (-5000, 5000, 100);
y = rand (1, 100);
plot (x, y);
axis ([-4750, 4750, 0, 1]);


The last axis command increases the x-axis tick resolution to increments of 1000 instead of 2000 so there are more labels and they overlap each other.

Mike Miller <mtmiller>
Group Member
Thu 09 Jan 2014 05:28:07 AM UTC, comment #3: 

The problem is in windows and basically the x axis labels are all positioned atop one another no matter the size of the graphic (maximized or not). In linux there is no problem once the plot is maximized. Script file attached.

(file #30230)

Anonymous
Thu 09 Jan 2014 05:13:02 AM UTC, comment #2: 

Could you please describe precisely what the problem is? The legends inside the plots?
Also please use verbatim to paste your script:


+verbatim+
your script

-verbatim-

Lukas Reichlin <paramaniac>
Thu 09 Jan 2014 01:56:17 AM UTC, comment #1: 

Adding the Octave control package maintainer to the cc list for this report.

Mike Miller <mtmiller>
Group Member
Wed 08 Jan 2014 10:15:12 PM UTC, original submission:  

The code down below generates a root locus (control 2.4.2) with axis graduations that are not clear especially compared to results from Matlab or Scilab. The attached screenshot illustrates what I mean.


clear
clc
pkg load control
s = tf('s');
% Polynomial seed
Gain1 = (s^2+20*s+100)/(s^2+6*s+100);
Gain2 = Gain1*(s^2+3*s+220)/(s^2+25*s+225);
Gain3 =(s+5)/(s*s*(s-2000)*(s-200)*(s-25)*(s-1));
Gain4 = 352*Gain3;
%
%Bode plot:
%---------------
subplot(221)
bodemag(Gain2,Gain1,0.01,100)
% Magnitude plot
%
%Nyquist plot:
%-------------------
subplot(222)
nyquist(Gain2,Gain1)
% Plot with Re and Im axes
%Nichols chart (Black's diagram + iso-plots):
%-------------------------------------------------------------
subplot(223)
nichols(Gain2,Gain1,0.01,100)

%
%Evans root locus:
%-------------------------
subplot(224)
rlocus(Gain4) %,0100) %,100)
% Evans root locus for sys4

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #30230:  test_plot.m added by None (844B - text/x-objcsrc)
file #30227:  octave_root_locus.png added by None (193KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by paramaniac (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by mtmiller
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-07-31 mtmiller StatusNone Wont Fix
        Open/ClosedOpen Closed
    2015-05-31 mtmiller Severity3 - Normal 2 - Minor
        Item GroupPerformance Incorrect Result
        Release3.6.4 dev
        Operating SystemMicrosoft Windows Any
        Summarycontrol package: rlocus function axis graduation not optimal x-axis tick labels can overlap in gnuplot figures
    2015-05-31 mtmiller CategoryOctave Package Plotting with gnuplot
    2014-01-09 None Attached File- Added test_plot.m, #30230
    2014-01-09 mtmiller SummaryRlocus function axis graduation not optimal control package: rlocus function axis graduation not optimal
        Carbon-Copy- Added paramaniac
    2014-01-08 None Attached File- Added octave_root_locus.png, #30227

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code