# Tagged Questions

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

648 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 ...
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: ...
203 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? ...
130 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 ...
114 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 ...
498 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 ...
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
69 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: ...
183 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.
89 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 Plot...
109 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 ...
191 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 ...
77 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 ...
373 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 ...
161 views

### combine two ParametricPlot3D plots

I have the following parametric equations ...
188 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. ...
91 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 ...
100 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 ...
81 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 ...
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 ...
126 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 ...
321 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: ...
625 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". The ...
67 views

### interpretation of parentheses in ToExpression

The code below generates the plot "z" and gives a name to the "Show" function. ...
93 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. ...
73 views

...
170 views

### Tooltip with position of the list element

I want to use Listplot with Tooltipthat displays Positionof the element I'm hovering over. <...
181 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 ...
84 views

### Using ContourPlot of a Potential surface Image

I did this image, using Contour plot: and the code is: ...
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 ...
174 views

### Inefficient NIntegrate and Which

In version 10 a simple numerical integraton of piecewise function is highly inefficient: ...
553 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 ...
91 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: ...
444 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 PlotLegends,...
210 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$ \$g_i(x)\leq0{\space\space\...
63 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?
107 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 ...
36 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 ...
116 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 ...
332 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 ...
116 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) ...
124 views

Code: ...
161 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 ...
97 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 ...
254 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 ...
147 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: ...
524 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 ...
491 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: ...
133 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}]
237 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 this(...