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

learn more… | top users | synonyms (10)

0
votes
2answers
519 views

Lotka Volterra Equation Plotting

So I have a basic Mathematica assignment where we need to numerically solve a Lotka-Volterra predator-prey population equation. So far I have managed to come up with this ...
0
votes
1answer
62 views

Compute the evolution of several quanties from a data file

This question is somehow a part II of this: Part I. Here comes a small data sample as a minimal working example: ...
0
votes
1answer
189 views

How to Obtain a ListPlot in each loop of Do[]. BUT not a list of plots after the DO[] [duplicate]

I´m trying to obtain ListPlot inside a DO loop but, always I can see the final semicolon in red, and the code runs well except the PLOTS. How can I obtain the ListPlots in each iteration? ...
1
vote
0answers
118 views

How to add a Bar Legend to a density plot over the surface of a sphere?

I have a function with variables (theta,phi) the spherical coordinates. I want to represent it as a density plot over the surface of a sphere. following an answer to a previous question Density ...
0
votes
2answers
107 views

Flipping Vertical Axis in ParametricPlot [duplicate]

Basically, I'm trying to "rotate" a plot clockwise so that the former x-axis is pointing down, and the former y-axis is pointing to the right. From reading some answers on here, I gathered that I can ...
3
votes
3answers
473 views

Plot Plane to Intersect 3D Contour Plot in Mathematica

I have a 3D model of a heart in Mathematica and I'm trying to create a plane so that the open surface (as seen in the image below) is cut off so that the heart can have a solid, level surface. How ...
0
votes
2answers
76 views

Help me plot a tangent with a Sin curve [duplicate]

Hi just wondering how to graph the tangent as well as this curve on the same graph : f(x)= Sin[x] at x=0 where the gradient of the tangent is 1
0
votes
1answer
67 views

Problems using a complicated function within a LogLinearPlot [duplicate]

my problem is that I have a rather large function which I'm trying to plot, which looks something like this: ...
0
votes
2answers
161 views

How to draw the area that cover given points on listplot

I have a lot of points' coordinates. I drew them on a 2d plot with ListPlot, and the points cover an area. Then I need to get the region that cover these points. Is there a way to do that? Thanks.
1
vote
2answers
86 views

Why Plot does not work with a computed integral?

I have been following the examples of the official W|A documentation; exactly: http://reference.wolfram.com/language/tutorial/UsingANotebookInterface.html The ...
4
votes
0answers
102 views

Exclusion disappears but style doesn't work

Consider this code: f[x_]:=(6 + 4 x + x^2 - x^3)/(x-2) Plot[f[x], {x, -10, 10}, Exclusions -> {2}, ExclusionsStyle -> Directive[Red, Dashed]] It produces ...
2
votes
2answers
185 views

Staight line Mesh

How to see (t,u) junction/nodes with a dot or a small circle connected by straight line in Mesh in 3D, but not as arcs generated by a large number of small steps of t and u.The command should, if ...
4
votes
1answer
75 views

Weird result of DensityPlot - drastic changes because of slight modifications of plot range

DensityPlot[ Max[0, 0.1 - Abs[1. - Sqrt[x^2 + y^2]]], {x, -1.1, 1.1}, {y, -1.1, 1.1}, ColorFunction -> (Opacity[#, Blue] &), Frame -> False] This ...
1
vote
1answer
334 views

Adjusting contrast of a color scale with ListDensityPlot

I am using ListDensityPlot to plot data of the form {{x1,y1,z1},{x2,y2,z2}, …}. It results in the plot shown below. But I'd like to adjust the color scale contrast to better show the variations in ...
1
vote
2answers
143 views

combine two ParametricPlot3D plots

I have the following parametric equations ...
0
votes
1answer
154 views

Changing Axis of a Listplot based on values in a list [closed]

I have a table with some data that I plot against each other, say like this. ...
2
votes
2answers
89 views

3D graphics with colourbar

I have lists with 4 data e.g. {{0,0,0,-2000},{0,0,.5,-1800},{0,0,1,-1500},{0,.5,0,-2005},{0,.5,.5,-1795}, {0,.5,.1,-1508} ... {x,y,z,B}} How can I plot B ...
0
votes
1answer
95 views

Are there any built-in functions to find the feasible space for a set of constraints? [closed]

I have a set of constants including linear and nonlinear equalities and inequalities. How can I obtain the the admissible values of each dimension (so-called feasible solution space) . Are there any ...
0
votes
2answers
78 views

how to control the limits of two variables in manipulate

This is my code. myPlot[a_, b_] := ParametricPlot3D[Sin[x], {x, a, b}]; Manipulate[Show[myPlot[a, b]], {a, -1, 1}, {b, -1, 1}] I want to manipulate ...
0
votes
0answers
41 views

Placing a ContourPlot under a SphericalPlot3D [duplicate]

I would like to combine a 3-dimensional graph of a function with its 2-dimensional contour-plot underneath it in a professional way. But I have no idea how to start. I have a three of these I would ...
1
vote
2answers
122 views

optimization of CountourPlot with NIntegrate

I have to use ContourPlot with a complicated function depending on 2 parametrs (that I cannot report here) that contains numerical integrations. Here is a simple ...
1
vote
1answer
297 views

BarChart with Log-Scaling and Error-Bars [duplicate]

I want to make a BarChart with Log-Scaling and Error-Bars. I can do both individually: ...
4
votes
1answer
538 views

Where does this gray solid line come from in plot? [duplicate]

Where does this gray solid line come from? It's not y=0 or x=0. Sometimes it occurs, sometime does not. I can't really produce a smaller example that does the same thing as it is really "random". ...
0
votes
2answers
66 views

interpretation of parentheses in ToExpression

The code below generates the plot "z" and gives a name to the "Show" function. ...
1
vote
1answer
88 views

LayeredGraphPlot: how to specify edge endpoints?

What directive within the LayeredGraphPlot command specifies where the edges attach to vertices? For example, instead of the left output below, I'd like to have the right one. ...
0
votes
1answer
67 views
4
votes
2answers
167 views

Tooltip with position of the list element

I want to use Listplot with Tooltipthat displays Positionof the element I'm hovering over. ...
-2
votes
2answers
160 views

Plotting self-made functions [closed]

EDITED AS SUGGESTED I have defined a function, which takes two values and returns a function n(x), like so ...
0
votes
0answers
76 views

Using ContourPlot of a Potential surface Image

I did this image, using Contour plot: and the code is: ...
1
vote
0answers
48 views

Cursor function for 3D plots [duplicate]

I will illustrate my question with a picture from a matlab plot. Is it possible to do the same thing with Mathematica plots in 3D as well? The above is from a 3D matlab plot. I can get tooltips ...
3
votes
3answers
173 views

Inefficient NIntegrate and Which

In version 10 a simple numerical integraton of piecewise function is highly inefficient: ...
3
votes
5answers
485 views

Define a function with variables linked implicitly

I would like to define a function $f(x,y)$, with the variables x and y linked by an equation implicitly, so $f(x,y)=f(x(y),y)=f(y)$. Eventually I would like to draw a graph with $f(x(y),y)$ being the ...
1
vote
1answer
86 views

How to Plot a Bezier Curve for a specified Control Polygon with a restricted interval

I am having some confusion in plotting a Bezier Curve for the specified interval [a,b] for a given control point polygon. For example: ...
5
votes
2answers
391 views

Legend Matrix Plot

I have the following problem. I'd like to add a legend to MatrixPlot. Each colour should have a legend entry. I used ...
2
votes
0answers
189 views

How to plot feasible objective space of a Generic Multiobjective Optimization problem?

As you know, a generic Multiobjective optimization problem can be stated as follows: $min{\space}F(\bf{X})=[f_1(x),...,f_n(x)]$ $h_k(x)=0{\space\space\space} k=1,...,n_e$ ...
0
votes
2answers
60 views

How to highlight (differentiate) negative numbers in plots? [closed]

I want to clearly see negative values in 3D plots. How can I do it?
0
votes
1answer
105 views

How to put a condition in 3d plotting

I have the following plotting question: First I want to have 3D plot of Alpha respect to different values of p and l when we ...
0
votes
0answers
35 views

How to change the plot starting point? [duplicate]

I tried to translate this Python plot to Mathematica: Python: Mathematica: ListLinePlot[RandomReal[{0, 1}, 10], Filling -> Axis] The Mathematica code ...
4
votes
1answer
114 views

Figure with fill

I want to make a figure like this In Mathematica 9, to fill it with a grid inside (and necessary without part of the grid outside), but to generate this picture, I need to graph two semicircles and ...
0
votes
1answer
299 views

how to scale the plot of PDF (t-distribution)

The directions in my book say: "To sketch the t distribution in Figure 3.11, simply multiply the abscissa t value by the scale factor and plot this against the ordinate of t at that point." So ...
-1
votes
1answer
112 views

How to get a 3D plot of from the the solutions of function [closed]

I have the following equation: (1 - x)^2 + T^2/((f[x] - L)*(f[x] - L - 2*T))*(P/(N-R+S)) == 0 f[x] = (x*r*(T + L) - T)/((x*r) - 1) ...
4
votes
2answers
118 views

Using Abs in MeshFunction gives incorrect results

Code: ...
0
votes
1answer
142 views

Plotting results of a NSolve problem

I am calculating, numerically, the zeros of a determinant. a1 and a2 are constants, q is a parameter. I would like to vary q and find the roots w as a function of q and plot roots w vs. q. All ...
0
votes
1answer
92 views

Having trouble displaying imported Excel regression data [closed]

The plot points and residual lines are not showing, hard-coded data works, and imported data does do something, just not what its supposed to Is the table or the plot range the wrong size? I can't ...
8
votes
1answer
247 views

Plot that draws a dashed/solid curve depending on the y-value of the curve

Kind of as an extension of this question: How to plot a series using different colors depending on the y-value Is there something similar to MeshFunction or ...
1
vote
1answer
128 views

MatrixPlot Styling

I like to build a colour sequence from a list. Each value has a corresponding colour. I used MatrixPlot to do that. I have two question concerning MatrixPlot styling. Code: ...
1
vote
3answers
454 views

Sketch a cone and its base

A cone is the union of a set of half-lines that start at a common apex point and go through a base which can be any parametric curve. Show that the graph of z = ( x ^2 + 4y ^2)^(1/2) is a cone. What ...
1
vote
3answers
436 views

How to plot a histogram given a set of frequencies for data values?

I have generated many random variables within a specific function, and have counted them up. So far, I have counted the variables: ...
2
votes
2answers
131 views

ContourPlot of Or expression [closed]

How can I get the following to produce a plot of the two circles? ContourPlot[Or[x^2 + y^2 == 1, x^2 + y^2 == 1/4], {x, -1, 1}, {y, -1, 1}]
0
votes
2answers
219 views

Why won't this graph? [closed]

I'm trying to sketch level curve for z=k for the specified values of k={-2,-1,2} of z= 4x^2 - 4x + y^2 + 2y So I changed ...