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

learn more… | top users | synonyms (12)

1
vote
1answer
114 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 ...
3
votes
2answers
153 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 ...
3
votes
1answer
140 views

How can I avoid these defects in ContourPlot3D output on WPC?

What I do: ContourPlot3D[-x^2/17.07 + y^2 + z^2 == 1 - x^17.07, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, PlotPoints -> 16] What I get: ...
7
votes
1answer
480 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
1answer
92 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
2answers
160 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: ...
5
votes
2answers
98 views

Labeling columns in grouped charts separately

I want to label sequentially some charts. Say, for instance, that I had: ...
10
votes
1answer
311 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 ...
0
votes
1answer
166 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 ...
0
votes
3answers
237 views

How can I write the frame ticks in Scientific Form?

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
223 views

LineLegend behaves differently in ListPlot in Mathematica Version10.0 or later

Suppose I want a line legend for a list plot: ...
0
votes
1answer
66 views

I have a problem in plotting simple Exponential Equation? [closed]

The simple piece of Code is given below. ...
1
vote
0answers
42 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 ...
4
votes
0answers
109 views

ListLogPlot error when forcing y axes start at 0 [closed]

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 ...
7
votes
2answers
578 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, ...
2
votes
1answer
109 views

DateListPlot incorrect time zone [closed]

I'm trying to plot energy usage over time using datelistplot but the time zone on the ticks is wrong, data for 7pm shows as 3am The code: ...
13
votes
1answer
176 views

Change in Lighting and Show in V10?

According the documentation for Show: Options explicitly specified in Show override those included in the graphics ...
5
votes
2answers
315 views

Module inside of Manipulate Example

Here is a very nice example from The Student's Introduction to MATHEMATICA. ...
7
votes
0answers
88 views

Override a PlotTheme element at the Options level?

Edit: I am still using version 10.1; has anything changed by 10.4.1? Plot properties defined in a Theme override (supersede) properties defined on Options. This ...
0
votes
1answer
129 views
8
votes
3answers
370 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: ...
1
vote
0answers
37 views

RegionPlot generates unwanted mesh lines [duplicate]

Consider this example: ...
0
votes
1answer
80 views

Plot a circle and create a 3-D revolution plot out of it

If I have the equation (x-2)^2 + (y-2)^2 == 1 I can use a ContourPlot, however am having trouble changing the axes origin. I ...
5
votes
3answers
126 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
1answer
117 views

How may I remedy this erroneous lighting pattern?

What I did: ...
6
votes
2answers
304 views

How to achieve a decent terminator line?

What I did: ...
3
votes
2answers
159 views
-1
votes
1answer
114 views
1
vote
1answer
109 views

How to plot a function defined by an expression containing integrals [duplicate]

It seems Mathematica does not like it when it is given a function defined by an integral to plot. How would one plot a function $F(x)=\int_0^x\int_0^xf(t,s)dtds$ on a given interval? Edit In ...
-1
votes
1answer
137 views

How may I avoid ParametricPlot3D clipping? [duplicate]

What I am doing: ParametricPlot3D[{Cos[z/2]^6 * Cos[t],Cos[z/2]^6 * Sin[t], z}, {t,-Pi, Pi},{z,-Pi,Pi}] What I get: What I want: what I get, but without the ...
3
votes
2answers
232 views

Storing Variables in “Loops” and Point Plotting

Given the function $y=\sin x$ defined over the region $-\pi \leq x \leq \pi$, I need to implement a "do loop" such that I sweep over 100 or so points $-1 \leq y \leq 1$ and find precisely the two $x$ ...
3
votes
2answers
184 views

Plotting a function with implicitly defined variable

I have a question about plotting a function with an implicitly defined variable. I think the solution should be something similar like here: Define a function with variables linked implicitly but I ...
1
vote
1answer
114 views

Plotting function in cylindrical coordinates (r,theta,z) [duplicate]

I have a function of two variables (r,theta), and I would like to plot it as a surface using cylindrical coordinates. Based on my research, there is no built mathematica function for plotting ...
0
votes
1answer
159 views

Sum with 2 different variables

I want to plot Contour or Streamplot a function with a sum. The first part (Abs[v/u]>1) looks like this: $L(u,v)=\sum_{s=0}^\infty \frac{(-1)^s}{2s+1} (\frac{u}{...
2
votes
1answer
157 views

Plot not working for a phase diagram

Whatever I have tried, I could not achieve to plot numerical values coming from my system of differential equation. It is a optimal control model with two state variables. My differential system is ...
0
votes
1answer
47 views

ContourPlot with with specific/unequal axis values that cannot be specified in advance

I have the following problem: ...
2
votes
3answers
239 views

Integrate over Piecewise function efficiently

I have this Piecewise function: ...
9
votes
1answer
99 views

NumberLinePlot missing large segments of interval

What is going on here? Why isn't it extending to the full range? Removing the + 0.0 gives the correct ...
1
vote
0answers
78 views

3D game from my Magic cube [closed]

I'm a student of design. I created a Magic cube. How can I make this game with Mathematica? I have already imported a mesh *.obj with 192 triangles. If anyone knows how to do this please reply.
2
votes
1answer
111 views

Problem with code from Stan Wagon's book [duplicate]

Stan Wagon's Third Edition of Mathematica in Action has this code on page 30: ...
4
votes
1answer
192 views

Unexpected results from trying to solve Laplace's equation

I am trying to find the solution to Laplace's equation: $\dfrac{\partial^2 u}{\partial x^2}+\dfrac{\partial^2 u}{\partial y^2}=0$ over the following region of space: the vertices of the triangle ...
6
votes
2answers
175 views

PlotLegends “Expressions” default for ListPlot?

gwr pointed out an apparent problem with setting a default Option value of PlotLegends for DateListPlot. I traced the problem ...
0
votes
1answer
285 views

Axeslabel doesn't work when using Frame and FrameTicks,

I'm using FrameTicks and Frame to get a second y-axis. But then my axes labels disappear. I've solved it by using ...
2
votes
2answers
108 views

How to transpose x and y axis on a LogLogPlot?

how can i exchange x and y Axis of this loglogplot? ...
2
votes
1answer
69 views

Blank plot when using WorkingPrecision

I have the following code: Inv=WeierstrassInvariants[{1,I/3}] ...
3
votes
1answer
356 views

Display frame-tick labels on top side

I am making a standard framed Plot and would like the frame tick labels for the horizontal axis to appear on the top frame edge. I know I can do this by hand using,...
6
votes
5answers
546 views

Help remove annoying vertical lines in a piecewise plot

I use the following codes to define and plot three piecewise functions. ...
1
vote
2answers
176 views

How to define a sequence of piecewise functions and then plot them altogether?

The following is the piecewise functions I want to define ${f_k(x)} = \left\{ {\begin{array}{*{20}{c}} {\frac{{j - 1}}{{{2^k}}}}&{\frac{{j - 1}}{{{2^k}}} \le f(x) \le \frac{j}{{{2^k}}}}\\ k&...
0
votes
1answer
466 views

BarChart: Want to rotate and place a y-axis label on the left side

I would like to know if it's posible to place the y-axis label roated on the left side without using Frame->True and ...
2
votes
1answer
237 views

Plot a curve on a lattice

How do I plot a 2d curve and label lattice points to one side of it? I want to plot the curve $f[x]=\frac{1}{x}$, and draw a solid red dot at every lattice point in the following set: $$\{(m,n)\in \...