Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.

learn more… | top users | synonyms (6)

6
votes
1answer
304 views

Dipolar magnetic field lines inside a cylinder

I'm drawing the magnetic field lines of a rotating dipole (magnetic field distorded by emission of radiation). Currently, my Mathematica 7.0 code is fully working, but I'm having a constraint which I ...
0
votes
3answers
1k views

Plotting multivariable integration

If I have a multivariable integration like NIntegrate[x^2 + y^2, {x, 1, 5}, {y, 6, 10}] But I need to plot its result in terms of ...
8
votes
3answers
205 views

Ticks disappear in Graphics3D with Epilog

Bug introduced in 10.0.0 and fixed in 10.0.2 Normally, you can enable Graphics3D to show tick marks by doing this: ...
0
votes
0answers
61 views

Drawing ellipsoid with tanh [migrated]

The function $f(x,y)=\tanh(R-\sqrt{x^2+y^2})$ for a given $R>0$ draws a circle with radius R with maximum and minimum of +1 and -1. This I can see when I plot ...
3
votes
2answers
2k views

How do I define the domain of a function?

I have a function of two variables, f[x_, y_], and I would like to restrict the domain to values of x and ...
3
votes
2answers
121 views

Even with Evaluate[], Mathematica is plotting everything in the same color

The code evals[x_?NumericQ] := Eigenvalues[{{x^2, 2 x}, {x, 3 x^2}}]; Plot[Evaluate[evals[x]], {x, -1, 1}] gives both eigenvalues in the same color. I thought ...
1
vote
1answer
63 views

Adding a fading color only to 3D curves going outside a cylinder

I'm having a problem with color shades on multi curves drawn with the Mathematica 7.0 code below. All the curves with both their endpoints inside the unit cylinder (green circle on the picture below) ...
3
votes
3answers
100 views

Interpreting Results of Repeated Measures - Shift calculation in plots

What would be a more accurate method to calculate the shift in waveform (waveform drift) from a collection of 20 or more data plots. Current method, Plot all using Show and see if there is some ...
15
votes
1answer
419 views

Why does LogLinearPlot sample its argument outside the specified domain?

Bug introduced in 6.0 and fixed in 9.0.0 I experience a weird bug in the function LogLinearPlot. If the input is an interpolation function, such as the one ...
3
votes
1answer
102 views

Removing the background color from BarChart3D plot

I'm trying to make a 3D bar chart plot with transparent faces on the sides, but for some reason it's very hard to remove them (or to make them transparent at least). I tried looking through the ...
5
votes
1answer
50 views

How to simultaneously extract contourvalues and contourline?

Given a contour plot, plt=ContourPlot[Sin[x y],{x,-1,1},{y,-1,1}] I can extract the values of the contour lines using, ...
1
vote
1answer
62 views

Adding a fading color to multiple lines in 3D

I would like to add a fading color to all the 3D lines I'm drawing with the code below, but I'm having difficulties with implementing the idea. The curves are starting on a unit sphere, and extend in ...
1
vote
0answers
72 views

Automatically sizing elements in a DistributionChart with custom ChartElementFunction

This is a follow-up to some related questions: 46770 and 60600. I'd like to make a DistributionChart where the elements are histograms with my own custom ...
0
votes
0answers
140 views

Distance between ticks and axes

I've created a plot using the following code: ...
85
votes
5answers
20k views

1 Plot, 2 Scale/Axis

I would like to plot those two datasets on top of each other. But they have very different range on the $y$ axis. How can I have two different axis? I found the following on the help menu but quite ...
1
vote
1answer
81 views

LogPlot hangs but Plot does not

This is a bit involved example, but I have not been able to reproduce it in more simple cases. ...
13
votes
4answers
2k views

All curves in plot have the same style. Cannot be fixed with Evaluate[]

Usually, when I plot multiple curves in Mathematica Plot[{x,x^2,x^3},{x,0,1}] they are given different colors. However, if I try to construct a list inside the ...
56
votes
4answers
4k views

Plot draws list of curves in same color when not using Evaluate

This example comes from the Mathematica documentation for Plot under Basic Examples. Can someone please explain why these are each plotted as a different color in ...
1
vote
2answers
109 views

Styling the edges of a graph according to the multiplicities of the edges

I used the following code to make a simple triangle, in which the nodes have different effects each other: ...
9
votes
1answer
162 views

GeoProjection for astronomical data - wrong ticks

Here is an excellent answer to what I wanted to do, and it works like a charm. Unfortunately, when I want to change it a bit, it fails. For setting the stage, here is the datafile, and this is my ...
17
votes
2answers
455 views

Using map projections with astronomical data

I noticed that all important "Geoprojections" are available in projections for a spherical reference models: GeoProjectionData function; 1 - I am trying using the sinusoidal projection for ...
0
votes
1answer
55 views

Colors on a 3D curve not working

I'm having troubles applying colors to a simple 3D curve plot. Here's the code : ...
1
vote
1answer
60 views

Same scale for all the axes in Plot3D

I can't find this in the documentation. How do you force the same scale for all the axes when making a 3D plot? There is the BoxRatios option, but this only changes ...
3
votes
3answers
257 views

3D Gamma function

I try to plot the following function: Plot3D[Gamma[1+0.5*(n+m)]/Sqrt[Gamma[1+n]*Gamma[1+m]],{n,0,1000},{m,0,1000}] I expect that for m=n and near to it the value ...
5
votes
3answers
102 views

ImplicitRegion gives arbitrary boundaries

This question uses Mathematica 10.2.0.0. equation1 is the major unbounded region I would like to generate: ...
5
votes
2answers
75 views

Labeling columns in grouped charts separately

I want to label sequentially some charts. Say, for instance, that I had: ...
9
votes
0answers
151 views

Behavior of TimelinePlot with multiple datasets of associations

Bug introduced in 10.1 and persisting through 10.2 or later The following TimelinePlot behaves as I would expect: ...
7
votes
0answers
117 views

One less arrow vector than asked for

Bug introduced in v10 and persisting through 10.2 or later Consider the following code: ...
0
votes
1answer
48 views

Domain Restriction for ListPlot

I constructed a table (here called 'distanceplot') with a set domain (from 0 to 100). I wish to keep this domain for the table constant. However, I shall be making multiple plots, each using a ...
1
vote
2answers
93 views

How can I remove the decimals in the frame ticks?

Is there any way to remove the decimal places in the frame ticks. I would like to make the y axis ticks integers. I use the following code. My only problem is how to manipulate the y axis without ...
6
votes
2answers
126 views
6
votes
2answers
204 views

Mathematica 10, Show, and PlotRange

I have recently moved from Mathematica 8 to Mathematica 10, however I'm having a problem with PlotRange->All in combination with Show[]. For example, ...
4
votes
1answer
84 views

Evaluating documentation example crashes the kernel

Save your work before attempting: Could someone confirm what looks like a bug (definitely occurs in v10 and OSX 10.8.5): In the documentation for Background and ...
0
votes
1answer
56 views
4
votes
2answers
115 views

Module inside of Manipulate Example

Here is a very nice example from The Student's Introduction to MATHEMATICA. ...
5
votes
1answer
93 views

Why does the degree symbol disrupt this FrameLabel?

This plot Plot[x, {x, 0, 1}, FrameLabel -> {"x", "temperature / \[Degree]C"}, Frame -> True] displays beautifully, but exporting to PDF ...
13
votes
5answers
917 views

Plot list of million points

I am working on large datasets of size $10\times 10^6$ and would like to visualize these in Mathematica, but they take lot of time to plot. How can I speed it up? I also want to save the plots as ...
7
votes
1answer
335 views

Missing tick in plot

Bug introduced in 10.0.1 and persisting through 10.2.0 Consider this ...
1
vote
0answers
40 views

Plot is wrong for oscillating function [duplicate]

It doesnt even oscillate that much Plot[Exp[-Pi x^2 + I ( 60 1/(x^2 + .6) + 0.2)] // Re, {x, -2, 2}, PlotRange -> Full, MaxRecursion -> 15] What is ...
9
votes
3answers
155 views

How can I change the thickness of tick marks in BarLegend?

This answer explains how to change various undocumented options for BarLegend with Method. In particular, I want to change the ...
4
votes
0answers
50 views

ListLogPlot error when forcing y axes start at 0

I came across an error I can not circumvent. When plotting the following: ListLogPlot[Table[1/x, {x, 1, 100}]] I receive a functioning plot. If I now want to ...
58
votes
5answers
6k views

ListPlot: Plotting large data fast

Mathematica produces fantastic-looking graphics, but it can be slow on large data sets. Here is an example for a (random) time series: ...
13
votes
1answer
139 views

Change in Lighting and Show in V10?

According the documentation for Show: Options explicitly specified in Show override those included in the graphics ...
8
votes
3answers
190 views

Part of an Image cut/lost when exported to EPS file

When making .EPS image files for publication, I tried to assemble several Graphics by Grid. For example, suppose I have: ...
15
votes
0answers
217 views

RegionPlot returning a number

Bug introduced in 10.0 and persisting through 10.2 or later I had updated my mathematica to version 10 few days ago. And I had been shocked by the following fact: ...
8
votes
2answers
644 views

Problem with ContourPlot3D

Bug introduced in 7.0 and fixed in 9.0.1 The following line works fine: ...
7
votes
3answers
573 views

Plotting a 3D list causes kernel to crash if x and y axes have vastly different scales

Bug introduced in 7.0.1 or earlier and fixed in 10.0.2 or earlier I have access to two versions of Mathematica, version 7.0.1 on Linux and version 8 on Windows. When I try the following two lines ...