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
55 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 ...
3
votes
1answer
209 views

How to draw multi curves in a graph with errorbars

The curves are composed by several 2*n nested lists. I want these curves be placed in a 3d way, like the xy plane is for the data, different curves are located in several parallel xy planes with ...
4
votes
2answers
178 views

GraphPlot with black edges no rendering function

Is there any way to make the edges of a GraphPlot black without tediously writing out a long "EdgeRenderingFunction"? I guess you could ask the same kind of question about vertex labeling. For ...
3
votes
3answers
146 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
55 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
1
vote
1answer
69 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. ...
13
votes
4answers
626 views

How to make a Line[] with no end?

I'm trying to do this: In this graph, the secant points are aproximated in order to become the tangent, it seems I need some kind of function which plots a line based on two points and it's points ...
4
votes
1answer
62 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 ...
12
votes
1answer
253 views

Why is my rasterized graphic blank?

Bug introduced in 7.0 or earlier, and persisting through 10.0.2 or later (OSX 10.10.2) Consider the following code: ...
4
votes
0answers
57 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 ...
0
votes
1answer
31 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: ...
6
votes
2answers
189 views

VectorScale Explanation

I'm having great difficulty understanding VectorScale. Here are the definitions from the documentation. With the explicit specification ...
1
vote
2answers
71 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 ...
2
votes
2answers
108 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
3answers
176 views

Spherical parametric plot

How can I plot such a parametrized curve: $r = 2\cos t + \sin t$ $\theta = t$ $\phi = \sin 10t$ where $0<t<\pi/2$. In the documentation only has been discussed parametric plot in Cartesian ...
0
votes
0answers
58 views

Using ContourPlot of a Potential surface Image

I did this image, using Contour plot: and the code is: ...
2
votes
2answers
85 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
56 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. ...
1
vote
2answers
51 views

combine two ParametricPlot3D plots

I have the following parametric equations ...
0
votes
2answers
53 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
1answer
53 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
0answers
39 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
86 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 ...
2
votes
3answers
140 views

Inefficient NIntegrate and Which

In version 10 a simple numerical integraton of piecewise function is highly inefficient: ...
0
votes
2answers
53 views

interpretation of parentheses in ToExpression

The code below generates the plot "z" and gives a name to the "Show" function. ...
209
votes
5answers
101k views

How do I draw a pair of buttocks?

I'm trying to develop a function which 3D plot would have a buttocks like shape. Several days of searching the web and a dozen my of own attempts to solve the issue have brought nothing but two ...
4
votes
1answer
251 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". ...
2
votes
1answer
180 views

Package for nonlinear plot coordinates

Is there a package for plotting in nonlinear coordinates? I mean that I provide coordinate transformation functions {xi(x,y), eta(x,y)}, for example ...
-2
votes
2answers
80 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 ...
3
votes
5answers
202 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
0answers
42 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 ...
1
vote
0answers
56 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$ ...
18
votes
3answers
2k views

I'd like to display field lines for a point charge in 3 dimensions

I'd like to display field lines for a point charge in 3 dimensions. Not a force field (short arrows) but continuous field lines that start on the charge.
1
vote
1answer
121 views

Place legend without border above the plot

I use Mathematica 7.0 and as far as I know, there is not method PlotLegends, only PlotLegend. I want to set my legend - without background, shadow and frame - above my plot, as in the example belowe: ...
1
vote
1answer
52 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: ...
3
votes
2answers
150 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, which works in principal. If I use more than five colours this doesn't ...
3
votes
1answer
96 views

multiple or variable x scales in [list]plot

I need to make a plot (in this case a ListPlot) in which the x (horizontal) scale varies: either piecewise linear or a single nonconstant function. The purpose is to plot data for graphs like this ...
-2
votes
2answers
46 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?
-1
votes
1answer
95 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) ...
0
votes
1answer
95 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 ...
4
votes
1answer
89 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 ...
4
votes
1answer
432 views

Why does piecewise plot have a discontinuity when the function, first and second derivatives are equal?

There were some related questions to this one, but in this case we have the function value, the first derivative and the second derivative all equal (that was actually the problem I was solving). We ...
0
votes
0answers
71 views

2d perspective projection of a sphere

I am looking for improved quality of 3d plots. I don't want to keep the object in Mathematica notebook - just export it to a .pdf file. Because it will be just one "side" of the plot I was thinking ...
0
votes
0answers
32 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 ...
0
votes
1answer
68 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
vote
1answer
89 views

Exporting to eps loses font/symbol information?

I have already asked this question, which has helped. However, now my parenthesis are coming out as Courier "H" and "L." How do I work around this? Is there an easier way to save a plot as EPS without ...
0
votes
1answer
73 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 ...
1
vote
3answers
138 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 ...