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

learn more… | top users | synonyms (4)

1
vote
1answer
397 views

How to rotate the z label in 3D plots

Let's take the following simple and funny case ...
0
votes
2answers
149 views

What's wrong with my graph input?

So I saw this picture on my book and it was left as an exercise to figure out. This is what I have so far, but I'm not sure where I went wrong. ...
4
votes
1answer
153 views

How to prevent axes label and tick labels from being placed inside a 3D plot

Consider the following toy-code: ...
2
votes
1answer
83 views

What is the need for function parameters? Many possible inputs

If I have many possible variables related to one another, why do I need to define my function with parameters for plotting? For example, if I have an equation like: ...
2
votes
3answers
660 views

How do you plot level curves describing a 3d surface on the x-y plane?

I am trying to plot several level curves of the cone: [x=ucos[v], y=usin[v], z=u],[0<=u<=2,0<=v<=2Pi] in the x-y plane. Does anyone know how to do this? Thanks
0
votes
3answers
161 views

Labeling different curves on a LogLinearPlot

I have created a couple of two-variable plots of the form f(x,y)=x*y where there's a number of result curves, each representing an answer (image example below). ...
9
votes
1answer
1k views

Logarithmic scale in a DensityPlot and its legend

I was recently faced with the task of creating a DensityPlot with a logarithmic colour scale, and with providing it with an appropriate legend. Since I could not find any resources to this effect on ...
1
vote
1answer
147 views

Plotting - recursive

Slightly clearer, hopefully: I would like to plot Solve[Normal[Series[E^(n x), {x, 0, n}]] == 0 for incrementally increasing n, and show all plots overlayed. Here is my effort with up to n=63 using ...
4
votes
1answer
268 views

ListPlot3D of a set of points in a non-convex region

I would like to plot a set of points in the same style as ListPlot3D does, but only in a non-convex region that I can specify (e.g. using a ...
3
votes
1answer
196 views

Specifying coordinates for Inset on a LogPlot

If I use Epilog->Inset within a Plot, the coordinates specified within that Inset match ...
4
votes
1answer
150 views

Dark artifacts in mathematica plot

When plotting in Mathematica I just got some "dark artifacts". Here is my code: ...
1
vote
1answer
153 views

Show multiple plots with single variable

Using the same example code as in this question, is it possible to show all 10 plots (ie, each step of the manipulation) simultaneously? If a manipulate function is a series of listplots based on a ...
8
votes
6answers
605 views

How to draw symmetrical parts of a circle

Let's consider the following simple case: ...
0
votes
1answer
77 views

How do you ContourPlot3D an implicit function of x,y, and z?

This is what I am trying to do: ContourPlot3D[4 Log[x^2 + y^2 + z^2] == 1, {x, -10, 10}, {y, -10, 10}, {z, -10, 10}] but all I get is the empty box. Can anyone ...
2
votes
2answers
277 views

Is there a way to plot a single level curve of a function of x and y through a given point?

For example, I am trying to plot the single level curve of f(x,y)=xsin[y/x]+ysin[2x] that goes through the point (3pi,3pi). Can anyone show me how to do this?
4
votes
3answers
1k views

How can I save both the plot and the legend together?

In this example, How can I punt the Legend INSIDE the graph. Because when I save the graph, only save the graph BUT not save the legend. ...
2
votes
2answers
162 views

Plot3d of explanation of partial partial derivatives

I want to plot a two functions together that looks like this: But I am only able to come up with this;"which is clearly wrong" ...
1
vote
1answer
125 views

How to color ParametricPlot3D based on the parameter?

I have a set of ODEs I am solving, and then plotting (several) trajectories of in ParametricPlot3D. I want to have a color of each plot reflect the time (i.e. the Parameter) at that point. I tried ...
1
vote
1answer
127 views

How to force the RegionPlot to shade a narrow region?

I have an interactive demonstration, which (very simplified to leave out unnecessary details) looks as follows: ...
1
vote
3answers
177 views

How do i draw a hemisphere using SphericalPlot3D?

I want to know what ranges must be set for theta and to get a hemisphere of radius 5 from SphericalPlot3D.
7
votes
3answers
589 views

How do I create a histogram with unequal bin widths?

I would like to create a histogram for human population by age, but the $2010$ census data I have available is for five uneven cohorts: ages $0$-$17$, $18$-$24$, $25$-$44$, $45$-$64$, and $65+$. My ...
3
votes
1answer
81 views

How can I mark categories in a BarChart with one instead of multiple labels?

given the following data organized by year ...
6
votes
4answers
280 views

Is there a more Mathematica-y way to label these plots?

I am studying an infinite square well in the context of quantum mechanics. ...
2
votes
2answers
488 views

How could I make a drawing canvas?

My question is related to Change all Options of Plot Dynamically where Mathematica remembers the series of changes in the appearance of a drawing using Plot or ...
0
votes
1answer
161 views

Plotting a function only non-zero for discrete values of argument

I have a function like: $$ f(E)= \Sigma_{n=0} \Sigma_{\ell=0} \, \delta\left(E+\frac{\ell+2n+2} {R\sec{\rho}}\right) w(n,\rho,\ell)\,, $$ i.e. the function is zero unless $$ ...
1
vote
1answer
137 views

Draw the plane on ParametricPlot3D with one parameter

I need to make semitransparent coordinate plane(s) at ParametricPlot3D with one parameter. If I add the second parameter the curves becomes ugly. ...
0
votes
0answers
63 views

Set maximum streamline length in VectorPlot for implicitly seeded streamlines

I have written a function that is meant to illustrate the solution of a DE: ...
3
votes
3answers
182 views

Highlight selected curve on the plot

I have several curves on the same parametric 3D plot and I would like to highlight some curves dynamically by choosing them from list. ...
3
votes
4answers
275 views

Change all Options of Plot Dynamically

I am trying to make a series of changes in the appearance of the Plot of some function. I am trying to use Manipulate for my experiments. I tried to change the following code ...
1
vote
1answer
90 views

ListPlot with redundant labels for tick marks

Is it possible to have two sets of labels for the $x$-axis tick marks using ListPlot? For example, could we have tick marks labels: {1,2,3,4,...}, and then right ...
4
votes
1answer
197 views

How to reverse the gradient and ticks in BarLegend

I created a plot with a horizontal BarLegend for TemperatureColors (see1). Code: ...
6
votes
2answers
182 views

Implement planar correction for skewed 3D profilometric data

I have some data that represents small-scale surface topography. The data is planar but not flat because it's impractical to level this microscope to a tolerance of microns. It looks like this: I'd ...
1
vote
1answer
120 views

Replacement variable in list plot

I would like the replacement: /. {ComplexInfinity -> 0} to be treated as a variable. I am trying to overlay the following list plots: ...
-2
votes
1answer
170 views

How can I combine two plots that were created in different notebooks?

I have two different programs for simulating a system. when I get the results I have plotting result for each. now I want to combine both drawings so that I compare between them. I want to put both of ...
0
votes
1answer
146 views

Plot[ D[Sin[x]] ] and Evaluate[] [duplicate]

Why does t = 2 Pi; Plot[D[Sin[x],x], {x,0,t}] (* Plotting the derivative of Sin[x] *) not work, but ...
6
votes
3answers
310 views

Fill circle layers with colors according to read values from a plotted curve

I want to read (temperature) values from plotted (cooling) curves and visualize them in layered circles. I have an example made manually for clarification: 3 plotted curves, at certain time steps ...
1
vote
2answers
234 views

How can I increase the number of polygons / resolution for this plot?

I have generated the following plot: Code: RegionPlot3D[ x^2 + z^2 < 1 && x^2 + y^2 < 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Axes -> False] ...
-2
votes
1answer
341 views

Plotting a graph

Could anyone help me with plotting the following graph? Integrate (-Inf, Inf) (exp(-i*x*t))/((4*pi)((x-1)^2 +25)(exp(-100x) +1)) It's not a code obviously, but I ...
-3
votes
1answer
105 views

Exporting combined data plots as a PDF file [closed]

I am trying to export a graph similar to the one attached as PDF. I am having troubles with the error bars and legends. Is there a simple example someone can share and demonstrate how to do this?
5
votes
1answer
299 views

How to draw this kind of plot?

Apologies if the question is too basic; I've searched the manual and the web but couldn't find a solution. I would like to present some data on a discrete plot. The data is divided into $K$ series or ...
8
votes
4answers
315 views

Slow plotting of trigonometric functions

I have two sets of solutions for a and b. I'm plotting solution only if it is positive for both ...
10
votes
6answers
690 views

Ugly output when combining 2 plots with GraphicsRow

Here are the data that I want to plot: ...
0
votes
1answer
168 views

ListPlot and ColorFunction [duplicate]

I've been searching for the use of ColorFunction as an Option for ListPlot, but haven't found anything about it in the documentation. When trying the code ...
7
votes
2answers
226 views

Inaccurate plot

Could someone please tell me how I can increase the accuracy of this plot, please? Or is there some other reason the lines are breaking up? ...
1
vote
2answers
391 views

ParametricPlot3D with three variables

ParametricPlot3D can be used with one or two variables to plot paths and surfaces in 3-D such as ...
0
votes
0answers
63 views
3
votes
1answer
197 views

How can I produce a branch cut in a surface plot based made with ListPlot3D?

I need to create some surface plots, based on a function that is computationally expensive (a few minutes per point). The function has some branch cuts. The command ...
5
votes
1answer
255 views

Why is Plot3D giving me a surface with gaps?

I am trying to get plot for the band structure for graphene. ...
3
votes
2answers
895 views

How to do the log scale plot for ListContourPlot

My current code is: ...
5
votes
1answer
106 views

Omitting singularities from plot by specifying them in range

See the Mathematica 'basic plotting' documentation: http://reference.wolfram.com/mathematica/tutorial/BasicPlotting.html Scroll down to the third plot on that page, which says the following: "The ...