85 Reputation

5 Badges

9 years, 184 days

MaplePrimes Activity

These are questions asked by wswain

Can anyone assist with Heat Map plotting questions?


I am interested in specifically formating axis.  i.e., can an axis be labels such as RPM range text =  "0-100, 101-200, 201-300", etc.  for each bin and rotated vertical to fit.   I tried most of the plot options with no success including labeldirections=[x, y].

Also, can I invert the data so the 1,1 bin is lower left corner vs upper left? tried to reverse the indices and errored with "inverted index" without resolution.


Lastly, I noted that I couldn't stack a frame Text plot of same size by assigning a plot to a variable and using display to overlay them.   The heat map is always on top and transparency option doesn't let the text come through.   


Plt1 := HeatMap(Array3[2 .. 101, 2 .. 31], color = C_List, size = [750, 450], transparency = 0.5)


Thanks in advance,





Does anyone use a windows 10 code editor like, emacs, vim, or other with good textual layout, error and type checking? for building procedure files (libraries)?


I am using Maple2019.   I have been using a code region started in a worksheet and then exported to mpl file.   Not sure if I have really seen a debugger with breakpoints, step-in/step-out, type checking?   Am I just not looking in the right area?


Best practices from programmers of maple procedures appreciated.



Hello all,   Hope everyone is safe

Does anyone know why a vector of floats as the variable for SignalPlot returnes the error:

Error:  (in SignalProcessing:-SignalPlot) unable to store  ' " " ' when datatype = float[8] 

Accel3  is vector variable reporting back as  "57850 element Vector[column]"


When called by SignalPlot?   

SignalPlot(Accel3, samplerate = SampleRate)

I have successfully used SignalPlot without a problem before.



Does anyone use MTM toobox and why?


I discovered this through the eig help search and found the MATLAB format of [V, D] = eig(Matrix) for eigenvectors and eigenvalues as a single function call with output a nice shortcut vs two calls to LinearAlgebra[Eigenvalues], LinearAlegebra[Eigenvectors]


But, is the overhead and overmapping of standard maple functions worth it?   I find very little descriptions about the Maple Toolbox, specifically the MTM package.

has anyone tried to use Peter Fritzone's book with maplesim helloworld modelica??


The simple approach from Peter (creating a custom modelica component) is to getting started by running a simple simulation where x_dot(t) = - a*x,  where the normal form is x(t) = x^-a for logarithmic type decay.

plot of x(t) should be a decay curve.  


Maple Code

A:-LinkModel = fine, connects


SimData := A:-Simulate(outputs = x, returntype = datapoints, tf = 2);

Error, invalid input: Simulate expects value for keyword parameter [outputs, output] to be of type {list(algebraic), list(anyfunc(identical(t)))}, but received x




Model Main;


public HelloWorld HelloWorld1 annotation(Placement(transformation(origin={100.0,200.0},extent={{-20.0,-20.0},{20.0,20.0}},rotation=0)));
            Diagram(coordinateSystem(preserveAspectRatio=true, extent={{0,0},{200.0,200.0}}),graphics),
            Icon(coordinateSystem(preserveAspectRatio=true, extent={{0,0},{200.0,200.0}}),graphics={Rectangle(extent={{0,0},{200.0,200.0}}, lineColor={0,0,0})}),
              StartTime = 0,
              StopTime = 2.0,
              __Maplesoft_solver = "ck45",
              __Maplesoft_adaptive = true,
              Tolerance = 0.1e-4,
              __Maplesoft_tolerance_abs = 0.1e-4,
              __Maplesoft_step_size = 0.1e-2,
              __Maplesoft_min_step_size = 0,
              __Maplesoft_max_step_size = 0,
              __Maplesoft_plot_points = 2000,
              __Maplesoft_numeric_jacobian = false,
              __Maplesoft_constraint_iterations = 50,
              __Maplesoft_event_iterations = 100,
              __Maplesoft_algebraic_error_control = false,
              __Maplesoft_algebraic_error_relaxation_factor = 1,
              __Maplesoft_rate_hysteresis = 0.1e-9,
              __Maplesoft_reduce_events = false,
              __Maplesoft_integration_diagnostics = false,
              __Maplesoft_compiler = true,
              __Maplesoft_compiler_optimize = true,
              __Maplesoft_scale_method = "none",
              __Maplesoft_plot_event_points = true


end Main;

class HelloWorld
    Real x (start =1);
    parameter Real a = 1;
    der(x) = -a*x;
end HelloWorld;

1 2 3 Page 1 of 3