Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics...

25
��Mathematica ����As in many areas of functionality, apparent similarities in visualization capabilities between Maple and Mathematica are only skin deep. Mathematica automates more of the graphic creation to give more accurate or more understandable results in more cases. Mathematica automates more sensible aesthetic choices for professional-looking results. Mathematica supports a wider range of visualization routines. Mathematica visualizations make use of dynamic elements for richer electronic presentation. Mathematica visualizations support a greater range of inputs. Most Mathematica routines use adaptive resampling to achieve smooth results even where functions are rapidly changing. Most Maple visualizations do not. Without it, Maple is unable to trace the smooth circular perimeter of this plot: - - {- }{- } Mathematica Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 1

Transcript of Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics...

Page 1: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

��������������������������������������������Mathematica��������������������������������������������������������������������������

�������As in many areas of functionality, apparent similarities in visualization capabilities between Maple and Mathematica are only skin deep.

◼ Mathematica automates more of the graphic creation to give more accurate or more understandable results in more cases.

◼ Mathematica automates more sensible aesthetic choices for professional-looking results.

◼ Mathematica supports a wider range of visualization routines.

◼ Mathematica visualizations make use of dynamic elements for richer electronic presentation.

◼ Mathematica visualizations support a greater range of inputs.

������������������Most Mathematica routines use adaptive resampling to achieve smooth results even where functions are rapidly changing. Most Maple visualizations do not. Without it, Maple is unable to trace the smooth circular perimeter of this plot:

������ �� - �� - �� � {�� -�� �}� {�� -�� �}

Mathematica�

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 1

Page 2: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

�����

Notice also that the Mathematica 3D images are rendered using perspective. Maple’s use no perspective and appear as if viewed from an infinite distance, giving a slightly unnatural look.

The default choice for Maple is not to include axes for either scale or orientation, which can make plots hard to interpret unless the user manually adds them.

Maple can only automate sensible plot ranges for data with outliers in 2D. In this 3D example, we generate a table of values for a curved surface with one strong outlier. Mathematica’s automatic plot range preserves most of the interesting detail in the image at the expense of the outlier.

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 2

Page 3: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

Mathematica

���� = �����[���[� + ���[�]]� {�� �� �� ���}� {�� �� �� ���}]�

����[[��� ��]] = �����

����������[����]

�����However, all useful detail in the Maple plot is lost in order to include the single outlier.

Mathematica

Mathematica automatically detects many kinds of branch cuts and discontinuities in function plots.

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 3

Page 4: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

�������� � + � � � {�� -�� �}� {�� -�� �}

�����Maple incorrectly joins up the branch cut to make the function appear continuous.

Note: The output of the Maple plot has been manually rotated, as the default viewpoint obscured the key feature.

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 4

Page 5: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

�������������������

Mathematica

Mathematica automatically detects many kinds of discontinuity.

����[�����[�]� {�� �� ��}]

2 4 6 8 10

2

4

6

8

�����

Maple incorrectly implies that there is a value of floor(x) = 1

2.

��������������������������������������In implicit plotting and contour plotting, Maple’s lack of automatic adaptive resampling results in poor smoothness.

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 5

Page 6: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

Mathematica

������������� + �� - � �� + �� -�

��� + �� -

�⩵ �� {�� -���� ���}� {�� -���� ���}

-1.0 -0.5 0.0 0.5 1.0

-1.0

-0.5

0.0

0.5

1.0

�����

In the following example, notice how the only indication of relative contour values in Maple are the subtle color differences on the thin contour lines. The color filling between contours in Mathematica makes it easier to perceive the areas of low and high values, and automatic tooltips allow the user to see specific contour values.

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 6

Page 7: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

Mathematica

�����������-� �

�� + �� + �� {�� -�� �}� {�� -�� �}

-3 -2 -1 0 1 2 3

-3

-2

-1

0

1

2

3

�����

In 3D contour plotting, Maple’s lack of adaptive sampling combined with a low sample rate yields extremely rough results.

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 7

Page 8: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

Mathematica

��������������� + �� + �� + � ⩵ (� + � + � + �)�� {�� -�� �}� {�� -�� �}� {�� -�� �}

�����

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 8

Page 9: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

��������������Maple provides graph plotting, but defaults to much more primitive algorithms. In this example, notice how Mathematica manages to avoid any edge crossings and has managed to use the canvas area more evenly. The Maple plot of the same data is confusing. This is made much worse by the default choice of Maple to label vertices. This fairly small set of data is already too large to fit all vertex labels without overlaps, making them unreadable. Instead, Mathematica has provided mouseover tooltips to label vertices by default.

Mathematica

���������[{� → ��� � → ��� � → ��� � → ��� � → ��� � → ��� � → ��� � → ��� � → ��� � → ����

� → �� � → ��� � → ��� � → ��� � → ��� � → ��� � → ��� � → ��� � → ��� � → ��� � → ���

� → ��� � → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ���

�� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ���

�� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ���

�� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ���

�� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ���

�� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ���

�� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��}]

�����

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 9

Page 10: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

������������������Both Mathematica and Maple provide standard statistical charts, but in this example we see that Maple’s choice to use many of the same defaults as a function plot (1:1 aspect ratio, x axis inside the image) make the image harder to interpret since x axis tick labels appear on top of key features.

Mathematica

���������������[�����[�������������[������������������[���[�]� �]� ���]� {�� ��}]]

-10

-5

0

5

10

Mathematica uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following information.

�����Maple does not use tooltips in any graphics. The graduated color scheme used by Maple conveys no addi-tional meaning and is there only for questionable aesthetic appeal.

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 10

Page 11: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

�������������������Once again, Maple’s less sophisticated approach and lack of adaptive resampling produces a plot which is much rougher than Mathematica’s.

Mathematica

����������[� < ��� + ��� < �� {�� -�� �}� {�� -�� �}]

-2 -1 0 1 2

-2

-1

0

1

2

�����

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 11

Page 12: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

�������������Maple graphics cannot contain interactive elements. Individual elements in a Mathematica graphic (lines, points, polygons, etc.) can be given mouseover effects, tooltips (containing formatted text, typeset content, or graphics), or be made into buttons to execute arbitrary Mathematica programs. Mathematica graphics can also be made to update themselves automatically (even if a program is currently being executed) in response to external data feeds, the time, or the state of other calculations.

For example, the following code creates a bar chart where hovering over the bar with the mouse reveals a tooltip containing the photograph that the bar refers to.

Mathematica

��������[�������[�����������������[#� ���������������]� �����������[#� ���]] � /@

����������� /@ {{������������ �����������}� {������������ ������}�

{������������ ���������}� {������������ �����������������}}]

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 12

Page 13: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

������Mesh lines are an important feature for interpretation of scientific visualizations. Mathematica automates meshes for maximum readability and allows arbitrary user control of meshes in most visualizations.

For example, in this plot of data, Mathematica chooses to use 15 mesh lines in each dimension, even though the data is sampled at 450×450 points.

Mathematica

����������������� + ��� {�� ���}� {�� ���}

�����In contrast, Maple places a mesh line for each row and column of the data, making them unreadable as the lines join and interfere with each other.

Note: The output of the Maple plot has been manually rotated, as the default viewpoint obscured the key feature.

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 13

Page 14: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

����������������������������Often the ideal style choices are different for small and large datasets. Mathematica automatically applies these choices. For example, in this data plot, Mathematica’s larger choice of point size makes the points easier to see, especially on the axes.

Mathematica

��������[{{�� �}� {�� -�}� {�� �}� {�� -�}}]

1 2 3 4

-3

-2

-1

1

�����

However, when there are many points, Mathematica automatically uses smaller points than Maple, allowing more detail to be seen and avoiding unnecessary point overlap.

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 14

Page 15: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

Mathematica�

��������[�������������[������������������[]� {������ �}]]

-3 -2 -1 1 2 3

-4

-2

2

4

������

Both Mathematica and Maple use polygon edges to improve the appearance of bar charts.

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 15

Page 16: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

Mathematica�

��������[�������������[������������������[�� �]� ��]]

������

Mathematica�But Mathematica automatically removes these if there are many bars...

��������[�������������[������������������[�� �]� ���]]

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 16

Page 17: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

������ ...while Maple allows these black edges to overwhelm the chart.

Mathematica�Most Mathematica 3D visualization routines give optional arbitrary control over mesh lines. Maple provides only rectangular mesh lines or contours. For example, here Mathematica is instructed to place meshes at isolines in distance from {0,0,0}.

������[���[� + ���[�]]� {�� -�� �}� {�� -�� �}�

������������� → (�����������������[{#�� #�� #�}� {�� �� �}] �)]

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 17

Page 18: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

������������In Maple the region over which visualizations can be created is always either rectangular or one in which the second independent variable is an interval that is a function of the first variable. Mathematica visualizations can be created over any region, specified implicitly or explicitly, or by using geometric constructs or arbitrary meshes. The following visualizations would be very hard to create in Maple.

Mathematica�

������[���[� + ���[�]]� {�� -�� �}� {�� -�� �}� �������������� → (-� < #� #� < � �)]

�����������[���[� + ���[�]]� {�� �} ∈ �����������[

�������������������������[����[{�� �}� �]� ����[{���� ���}� �]]� ����[{�� �}� �]]]

-3 -2 -1 0 1 2 3

-3

-2

-1

0

1

2

3

4

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 18

Page 19: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

������[���[� + ���[�]]�

{�� �} ∈ ������������������[�����������[���������������� ���������]]]

�����Mathematica graphics can accept data with associated units, automatically converting to a common unit system.

Mathematica�

������������[{��������[����� ������]�

��������[���� ��������]� ��������[������ �������]}� ��������� → ���������]

0.5 1.0 1.5 2.0 2.5 3.0

2

4

6

8

10

12

14

ft

������Maple requires you to prepare all data as numeric values. It will also entirely fail if a single value is non-numeric (e.g. a NaN value in your data).

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 19

Page 20: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

�����������������������������������������Maple has no direct way to produce any of the following visualization types.

��������������[{{�� �� �}� {�� �� �}}� {{�� �� �}� {�� �� �}}]

02.55.0 0 2.5 5.0

����������[�����[-�� �]� ���������� → ��� �������������������� → ��������������

�������������� → ���������[��������[����]� �������[���]� �����������[������ ��]]]

���� = �������������[������������������[]� {�� ���}]�

����@���������[�����[�����������������[����� �������������������� → �]� {�� {����������

���������� ������������������� �������������� ��������������� ����������}}]� �]

-3

-2

-1

0

1

2

3

-3

-2

-1

0

1

2

3

-3

-2

-1

0

1

2

3

-3

-2

-1

0

1

2

3

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 20

Page 21: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

������������������[

����������[������[������������������������� {_� �������}]] → ������������]

people

0

2.50×107

5.00×107

7.50×107

1.00×108

1.25×108

��� = �������������� ����������� ������ ������ ��������������� ��������� �

�� {{����� �� �}� {����� ��� ��}}� ����������[��������]�

������������������ ����������� ������ ������ ��������������� ��������� �

���� ���������[���]� �����[���]

����������[������[������//�����������������������/��������������� ������]�

������������� → �������������������]

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 21

Page 22: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

�������������[����������[�� {�� ��� �}]]

������������������

�����������������[{-� - ��� + �� � + � - ���}� {�� -�� �}� {�� -�� �}]

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 22

Page 23: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

�������������������������������� + �� � + � - ��� {�������� ���� ���}�

{�� -�� �}� {�� -�� �}� ������������� → ��������������

������������� → �� ���������������������������� → �� ����� → �����

����������������

����������������������������������� {�� -�� �� ����}� ���������� �

200 400 600 800 1000 1200

8

7

6

5

4

3

2

1

��������������������������������������������������������� {�� -�� �� ����}

50 100 150 200

6

5

4

3

2

1

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 23

Page 24: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

����[�����������[{�������������� ��������}]� ���������� → {{�� �� -�� �}}]

������������������[������[������������������������� {_� �������}] → ������������]

�����������������������[{������� {{����� �� �}� {����� ��� ��}}}]

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 24

Page 25: Mathematica - Wolfram uses mouseover tooltips to convey additional information in most graphics types. In this case, mousing over the last dataset shows the following ...

�����������[{� → �� � → �� � → ��� � → �� � → ��� � → �� � → ��� � → �� � → ��� � → ��

� → ��� � → �� � → �� � → ��� � → �� � → ��� � → ��� � → ��� �� → ��� �� → ��� �� → ���

�� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��� �� → ��}]

������������

Maple provides no facility for rendering data or functions as sound within a report. Mathematica documents can contain generated waveform sounds or MIDI instrumental sounds.

����[���[���[���� ���]]� {�� �� �}]

� � | ���� ��

�����◼ Images have been copied using a screen capture tool to preserve pixel-level screen rendering. Printing

this document will not represent the resolution that printing from the original application would achieve.

◼ Except where stated, all comparisons use default options. Both systems allow manual control over plot details and in some cases, with sufficient work, a user may override some of the Maple deficiencies described in this comparison.

Comparison of Graphics Capabilities between Mathematica 10 and Maple 18 | 25