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

learn more… | top users | synonyms (4)

0
votes
0answers
2 views

Manipulate gives the output as a blank plot, but I'm not sure why

I'm using Mathematica 9 to try to manipulate a 3D plot. My code is: ...
4
votes
1answer
135 views

How to change the aspect ratio with drawing tool?

I'm drawing an image in editing an slide show with the drawing tools. But the aspect ratio of the created drawing seems fixed and not changeable with mouse dragging the border and corner as in other ...
1
vote
1answer
27 views

Exporting an overlay of two plots

I have a ListLinePlot and I'm trying to place a close-up of a specific range in the ListLinePlot. Using overlay I solved this problem with: ...
1
vote
2answers
40 views

why the variable scope is not local when using evaluate to plot multicurve?

I noticed a surprising problem when using evaluate to plot multicurve, "evaluate" function actually consider global variable first, not the local! I can illustrate the problem using the following ...
2
votes
1answer
84 views

Interpolation function rejected by ParametricPlot3D

I was playing around with the bouncing ball example, and decided to make a 3d version. I decided to use ParametricPlot3D for a simple independent 3D ...
3
votes
4answers
153 views

Controlling the placement of the y-axis

I use ListPlot for showing the results of my numeric computation. I make my own ticks, so I never know before hand where the vertical center of my plot will be. ...
0
votes
0answers
37 views

Plotting and NIntegrate [on hold]

I have a problem. I try to make such a plot: function = y^(3/2)*Exp[I t y - y^2]; Plot[NIntegrate[function, {y, -∞, ∞}], {t, -20, 20}] But I have no plot - I ...
6
votes
3answers
165 views

A Case of DeleteCases for WeatherData

I am trying to use ListVectorPlot in combination with WeatherData and CountryData to show ...
1
vote
2answers
93 views

How do I exclude the vertical line plotted at a discontinuity?

Condsider function = Tan[1 x] + Tan[2 x] Plot[function, {x, 0, 1.5}] It has a strong discontinuity around 0.8. The problem is , if I want to find ...
3
votes
1answer
88 views

How do I plot a U- form cylinder

I'm really new to Mathematica, trying to learn some things, but I need help trying to plot this kind of cylinder, a U tube like cylinder. Tried to use an example code like this, and then vary some ...
3
votes
5answers
108 views

Providing a color function for ListPointPlot3D

Is there a way to write ListPointPlot3D expression, so when given a list of points, the the color of the points plotted is a function of the index/element number of ...
13
votes
1answer
213 views

How can I mend this broken heart?

Try to evaluate the following code: ...
5
votes
2answers
171 views

Line style thickness differences between Mathematica 9 and 10

I execute the same code in Mathematica 9 and MAthematica 10, and have this different results. ...
4
votes
3answers
168 views

Spike train representation

I have a spike train. The data shows the time at which the neuron fired a spike. I want to plot them like this picture: Here is the data for one spike train which corresponds to the one of the ...
4
votes
2answers
149 views

Extrude 2D cross-section to 3D shape with shrinkfactor

I would like to create a 3D shape from extrusion and scaling of a 2D contour. The 2D contour that I have looks like this: and it consists of a bunch of points (here plotted with ...
0
votes
2answers
51 views

Changing the data indices for a large dataset plotted with ContourPlot

I have a large (square) dataset that I am plotting with ListContourPlot ... The data is 128x128 -- without coordinates for each point. I.e. - {{0,0,1,0,...,0},{0,2,1,1,...,1},...{3,1,1,1,...,2}} So ...
2
votes
1answer
74 views

Aborts and beeps without error warning

I have a piece of code that generates a figure, performing a calculation to generate each pixel. At a certain resolution it runs fine, but after a high enough resolution it fails. Mathematica beeps ...
2
votes
0answers
39 views

How to avoid joining MathieuCharacteristicA in a plot? [duplicate]

In the documentation As a function of the first argument, MathieuCharacteristicA is a piecewise continuous function So how to avoid joining different pieces of the function? For example, ...
25
votes
1answer
329 views

Is it possible to define new PlotTheme?

In version 10 one can define, say, $PlotTheme = "Scientific" Which changes the appearance of all plots. This is fantastic because on the one hand, I can have ...
1
vote
2answers
88 views

Line Breaks in AxesLabel or PlotLabel?

Searching got me peripherally related threads, but not exactly what I was looking for. I'm making some graphs which I want to use on exams. Sometimes, labels (specifically in AxesLabel and PlotLabel) ...
1
vote
1answer
49 views

Constraint in a 2D plot with Legend

I have the following plot: ...
0
votes
0answers
31 views

Set min and max ranges for axes in ParametricPlot

I'm having trouble with this one plot I'm trying to make. I'm using NDSolve on a system of differential equations and when I plot it with ParametricPlot, the scales or lengths of the graphs axes come ...
0
votes
0answers
26 views

Problem with Flatten [on hold]

I am calculating the metric tensor and its components.I have a metric of 6 X 6 dimensional matrix that contains terms like 1/z^6 ...
0
votes
3answers
71 views

How to draw a plane parallel to one of the coordinate planes? [on hold]

Sorry for the fact that I ask actually the same question on three different stackexchange sites (stackoverflow, mathematics and now here), but I need to find an answer to my problem as quickly as ...
0
votes
1answer
73 views

Contourplot of complex Roots

Suppose I have this equation: $$ z^2 + 3z + (x^2 + y^2) = 0 $$ I want the real and complex contour plot of $z(x,y)$. Analytically, the real/imaginary boundary is separated by condition $x^2 + y^2 ...
3
votes
2answers
131 views

Conversion of 3D plot to 2D Contour Plot

Is it possible for Mathematica to convert a 3D plot into a 2D contour plot without having to recompute the values for each point? I realize that looking directly down at the 3D plot will be similar to ...
0
votes
0answers
56 views

Plotting Geodesics in Kerr

I'm interested in plotting the trajectories of null geodesics near a rotating black hole (given by the Kerr solution) which involves a system of first order differential equations. Some Context (not ...
0
votes
2answers
56 views

Plot a perfect looking circle using two functions, always look like an ellipse [duplicate]

I want to use the the following two functions to plot a perfect looking circle, but the graph always ends up looking a bit squashed. I've been playing with some of the parameters of the function but ...
0
votes
1answer
59 views

What is wrong with ContourPlot [duplicate]

Why does this plot have a big blank hole in it? ...
6
votes
3answers
224 views

How to use PlotRange -> All with ListLogLinearPlot?

I would like to generate a ListLogLinearPlot that automatically shows all the data points. However the option ...
0
votes
0answers
52 views

I see error messages when I use LogLinear Plot but not when I use Plot

I have written an application with Manipulate that plots the results of several calculations. What I find strange is that when I have my application use ...
0
votes
0answers
66 views

How can I scale a plot in my Manipulate?

I want use scale in the same way as Mister Trevor Cole in his most excellent demonstration at the Wolfram Demonstrations site: ...
4
votes
2answers
190 views

Where can I get detailed information on how the Plot command works?

The command Plot[x^2, {x, -3, 3}, PlotStyle -> Arrowheads[{-.025, .025}]] /.Line -> Arrow produces this output. What I don't understand is what ...
0
votes
1answer
118 views

Plot3D unable to understand input function

I'm attempting to plot the Wigner Function of the Morse Oscillator defined as ...
8
votes
4answers
673 views
0
votes
0answers
28 views

Replace parameter of NDSolve by a Function

I dont know how to replace the paremeter inside of an interpolation function result from NDSolve by a function of another parameter. This is it: I have a ...
13
votes
4answers
427 views

HoldForm doesn't hold form

In Mathematica version 10, HoldForm no longer produces the same results as in version 8 (edit: I only have versions 10 and 8 installed, so can't compare to version ...
14
votes
1answer
330 views

Why do Arrowheads interfere with ImagePadding?

Bug still present in version 10 under Windows. In a recent posting, Belisarius solved a problem related to the display of arrows on the x and y axes by setting ...
1
vote
1answer
45 views

What is the correct way to plot a dynamically generated list of functions?

For example, I want to generate a list of random waves and plot them. Then I wrote f:=Random[Real] h:=Floor[f*20] And then ...
0
votes
0answers
81 views

Stochastic Simulation using the Gillespie algorithm

I'm trying to reproduce the simulation with demographic stochasticity in Figure 1 from the paper entitled "Dynamical Resonance Can Account For Seasonality of Influenza Epidemics" ...
0
votes
0answers
52 views

Trouble outputting Plot

I am trying to solve a system of ODEs and plot them with Manipulate but I keep getting blank outputs. Below is my code: ...
0
votes
0answers
63 views

Invert 3D objects (shape) to 3D patterns objects (shape)?

Is it possible to invert the 3D object (positive model) to 3D pattern objects (negative model) (for example, patterns for casting). For example (positive model): ...
1
vote
1answer
44 views

how to generate mesh functions according to more that one condition? [closed]

how to generate mesh functions according to more than one condition? This plot will have mesh according to z: ...
0
votes
0answers
38 views

Plotting four optimization solutions together on one plot [closed]

I have three variables. One of them might be a constant. I have four functions. I would like to plot them in a special way. Different pairs of variables give different values for each function. I ...
6
votes
3answers
173 views

Plot the plane so different condition has a different color

I have a list of functions defined on the plane, and I want to know which one of those functions is smaller than the other functions at particular points. Currently, what I do is ...
1
vote
1answer
145 views

Fluid mechanics problem concerning flow over a wedge

Below is the code I am using to generate a velocity profile and temperature profile for flow over a wedge. ...
1
vote
1answer
89 views

How to get a uniformly distributed list of points from a B-spline function

I created a spline function from a list of points and made a plot as follows: ...
1
vote
2answers
67 views

How to widen PlotLegends?

I have a plot whose legend, when placed at the bottom, is two lines rather than one: ...
1
vote
0answers
19 views

LegendLayout not working as asked [duplicate]

Why the following code does not result in row layout as specified (see the attached picture for result)? ...
2
votes
0answers
70 views

How to transform frame ticks from 1, 2, 3, … to x, 2 x, 3 x, …?

I want to replace the numbers on a framed plot's axes with that number multiplied by a variable, call it x. (The idea is that I'm plotting things which depend on ...