acer

32592 Reputation

29 Badges

20 years, 39 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

It is not clear what you are trying to ask.

The error message indicates that the GUI plot renderer had received a plot structure that it thinks contains an invalid substructure.

That is pretty much all we can tell from the message itself.

So we need to be able to re-execute, to reproduce the problem, so as to examine the internals of the problematic plotting structure.

Please show not just your procedures, but also the examples of calling them. (Word description is not as helpful.)

You could just upload and attach your .mw file.  Platform/OS details can be helpful.

One good idea is for you to provide code the can be used to reproduce the problem.

You could also attach a worksheet to your Question. Platform details might help.

Form the Help page for Topic solve,ineq

   In general, variables and parameters will automatically be assumed
   to be real-valued in the context of one or more inequalities.

@TechnicalSupport This item is not really about incorporating functionality.

This is about fixing a regression in quite usual functionality. In Maple 2015.2 the following works:

   plots:-matrixplot(<<1,2,3>|<3,4,7>|<4,5,8>>, heights=histogram, color=red);

But in Maple 2016.2 (and on to Maple 2020.1) the data contructed in the COLOR substructure is invalid (the number of entries are wrong, and some of the floats are indexed...)

The primary and central fix should be to restore the proper construction of the COLOR substructure. The fix should not consist primarily of applying options as a final step (eg. using plots:-display, say with _rest, and with or without overrideoption.)

If anyone's interested: the GUI sometimes renders 3D plots as all black when the color data it receives from the kernel is invalid. The CommandLine Interface (CLI) throws an error when running this problematic example in a terminal shell with the default plot-device.

@Anthrazit Your image shows the Help page of the substring command.

Your Post was (only) about the SubString command from the StringTools package. The Help page for that command states,

    All of the StringTools package commands treat strings as (null-terminated)
    sequences of 8-bit (ASCII) characters.  Thus, there is no support for multibyte
    character encodings, such as unicode encodings.

@Anthrazit One of the paragraphs specifically mentions that the command (and the StringTools package) only supports 8-bit ASCII interpretation.

Have you read and understood the Help page for that command?

Is the X-Y grid evenly spaced in both of those directions?

@Ali Hassani Thank you. I'm glad it serves your purpose.

That 3rd procedure is a little hackish, going through strings. It could be done more carefully.

@Joe Riel Incredible.

@Carl Love This is mostly right.

It is not true that libname can only contain references to directories -- it may also contain references to .mla files.

Also you stated, "To make it fully automatic as you describe, you must update the value of libname in your initialization file."  But that is not the only way to do it. A "toolbox" location also works, eg. with "foobar" a name of one's choice,
   cat(kernelopts('homedir'),"/maple/toolbox/foobar/lib")
also works. Or, version specific,
   cat(kernelopts('homedir'),"/maple/toolbox/2020/foobar/lib")
Such locations are automatically added to libname upon launch.

@dharr Yes, it's not clear why the OP wants atomic names for sub/superscripted expressions. My guess it that it might be to avoid any collision with the actual expression, but the OP really ought to clarify.

The third procedure in my Answer automates all generation of the atomic name which renders in 2D Output like the input expression, with minimal concatenation.

I agree with you that it's generally better to automate construction than to build up a complicated piece of MathML (or TypeMK, in undocumented Maple parlance). Natural exceptions are for cases where the 2D rendering doesn't actually match any valid Maple input expression, or when one wants special color/font/size.

Depending on one's view, one drawback here is that numerals are rendered in italics, which makes then look different from the usual expressions.  Eg,   x[5]^7  when normally typeset.

@MapleEnthusiast Alas, you have not actually answered my query as to what further computation you expect to do with this explicitly computed Matrix inverse.

First 141 142 143 144 145 146 147 Last Page 143 of 596