bugGNU Octave - Bugs: bug #56458, Octave closes on its own when I...

 
 

bug #56458: Octave closes on its own when I run my script.

Submitter:  None
Submitted:  Sat 08 Jun 2019 03:05:12 AM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Elías Urquiza Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 5.1.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 31 Jan 2020 09:45:59 PM UTC, comment #2: 

No response to request for more information, assuming that this works as expected. If there are still issues please comment again or file a new bug report.

Mike Miller <mtmiller>
Group Member
Sat 08 Jun 2019 11:29:38 PM UTC, comment #1: 

Can you use the qt or fltk toolkits for plotting?  gnuplot is not deprecated, but it is not the preferred plotting toolkit and it is not as well supported as the qt toolkit.

Rik <rik5>
Group administrator
Sat 08 Jun 2019 03:05:12 AM UTC, original submission:  

Ok so this script basically loads some transfer functions and then plots their responses to a generated signal. It also compares their responses with simulated data points from a txt file.
It didn't crash until I started using gnuplot and started adding legends.

clc
clear all;
close all;

cargar_transf_ideal
cargar_transf_normal
leido=dlmread('escalon_sim.txt',',');

graphics_toolkit("gnuplot");


t_step_sim=leido(1:end,1);
y_step_sim=leido(1:end,2);


Hf = figure();
Ha = axes;

W = 10; %Ancho página (va bien con 8-10)
H = 5; %Altura página (va bien con 5)

set(Hf,'PaperUnits','inches','PaperPosition',[0 0 W H]);
set(Ha,'Box','on','FontName','Arial','FontSize',10,'GridLineStyle','--','LineWidth',1);


title('Respuesta al Escalon')
xlabel('Tiempo[s]')
ylabel('V_{Out}[V]')
grid on;
grid minor on;
hold on;
plot(Ha, t_step_ideal, y_step_ideal, "linewidth", 5, '-k');
plot(Ha, t_step_normal, y_step_normal, "linewidth", 4, '-or',"markersize",6, "markerfacecolor", 'w', "markeredgecolor", 'w');
plot(Ha, t_step_sim, y_step_sim, "linewidth", 2, '--b');
axis([0 0.006 -0.2 0.4]);


l_ideal=sprintf("Respuesta Ideal: h_0=1; w_0=3958.5 s^(-1); f_0=630.02 Hz; Q =  2.1432.");
Hleg = legend(Ha,l_ideal, "location", 'northeast');
legend('boxon');
set(Hleg,'FontName','Arial','FontSize',10);

print('test.png','-dpng','-r1000'); % Exportar Graf.


Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #47053:  cargar_transf_ideal.m added by None (311B - application/octet-stream)
file #47054:  cargar_transf_normal.m added by None (1KiB - application/octet-stream)
file #47055:  escalon_sim.txt added by None (13KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-01-31 mtmiller StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2019-06-08 None Attached File- Added cargar_transf_ideal.m, #47053
        Attached File- Added cargar_transf_normal.m, #47054
        Attached File- Added escalon_sim.txt, #47055

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code