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

learn more… | top users | synonyms (4)

3
votes
2answers
96 views

Plotting 3D arrows on a surface

I have a cone: ...
16
votes
3answers
3k views

Is it possible to change the color of plot in Show?

For example: p = Plot[Sin[x], {x, 0, 1}] Is it possible to write options in Show to change the curve's color for example into ...
0
votes
1answer
64 views

Empty plot when calling the SphericalHarmonicY function in Plot or SphericalPlot3D [closed]

I'm getting an empty plot for the following code: SphericalPlot3D[ 2*Pi*Sin[theta]*SphericalHarmonicY[100, 50, theta, phi], {theta, 0, 2*Pi}, {phi, 0 , Pi}] ...
-2
votes
0answers
46 views

solving the heat equation

I'm trying to model the diffusion equation on mathematica, but I'm a complete beginner. So far I've managed to find the heat equation on the NDSovle examples but I'm not really entirely sure what all ...
5
votes
2answers
92 views

Flipping y-tick labes or x-tick labels simply

As it is common to most of us, when we plot a figure, x label ticks are located above x-axis and y label ticks are located at the right of y-axis. Is there any simple way to alter this in ...
35
votes
3answers
4k views

Plotting implicitly-defined space curves

It is known that space curves can either be defined parametrically, $$\begin{align*}x&=f(t)\\y&=g(t)\\z&=h(t)\end{align*}$$ or as the intersection of two surfaces, ...
3
votes
1answer
79 views

Why does the replace all (/.) evaluate differently in plot

I'm plotting this function: Plot[(2 (l/2 π)^2 ((2 π f)/c)^2 /. {f -> (f 10^9), l -> .01, c -> 3 10^8}), {f, 17.5, 26.5}] but it does not plot ...
1
vote
1answer
77 views

Why ContourPlot3D plot is in yxz system?

I was trying to explain to someone projection of points in space. I used ContourPlot3D and plotted the planes x=1, y=1 and z=1 to show that the point (1,1,1) is the point where these three planes ...
0
votes
0answers
224 views

Problem with Plot and ParametricNDSolve

This is my first question on this site, I hope it is written in an understandable way. Let's start. My aim is to plot a certain parametric region, with $x$ and $y$ coordinates given by the following ...
0
votes
2answers
64 views

How to label a GraphicsGrid? [duplicate]

I am constructing a GraphicsGrid from a set of plots. Is there an easy way to add an overall label for the whole grid?
2
votes
1answer
37 views

Test whether point belongs to the region between contour lines in ListContourPlot

A simple question but, unfortunately, I could not find the answer. Suppose I have a ListContourPlot built from some data set, e.g., ...
2
votes
1answer
97 views

How to save and manipulate an already plotted graphic

I have a figure which took some hours to create in Mathematica. I assigned it to a variable myplot, i.e., myplot = Plot[..]. Now ...
1
vote
1answer
75 views

Solve for values which produce negative real Eigenvalues?

Given an n x n matrix "A", with one or more unknown parameters, I'd like to show a plot of which values produce stability (negative Eigenvalues). For example, say you have a simple mass-spring-damper ...
1
vote
1answer
40 views

Changing the width of BarLegend

Is it possible to change the aspect ratio of the BarLegend in Mathematica? The option LegendMarkerSize, in my case below, only ...
0
votes
1answer
63 views

Equation of line from loglog plot

Given some data that looks linear on a ListLogLogPlot, how can I find the correct equation (and particularly, the correct slope of the line)? I have a sample code here ...
3
votes
2answers
168 views

Show cannot combine two graphics

First we load the data file data = ReadList["data_smp.out", Number, RecordLists -> True]; I know that I should provide some sample data but in this case the ...
0
votes
0answers
72 views

Unequal behaviour of FindRoot to two similar functions

Unfortunately, I have some difficulties to plot a function. Here is my code: ...
2
votes
1answer
53 views

Plotting Multiple Solve Functions

My goal is to plot the functions returned from Solve but assigning each solution to a different function. Here is an example where I do it by hand ...
0
votes
0answers
18 views

Plot an intersection of surfaces [duplicate]

I need to plot a curve in 3D that is an intersection of two surfaces, for example intersect the cylinder $x^2+y^2=1$ with a plane $z=x+y+1$. Here is a related question Plotting the intersection of ...
2
votes
2answers
76 views

Include more padding between tick marks and plot [duplicate]

How can I modify the code below to add some padding between my tick marks and 3D plot? It is not a problem in this example, but often my tick marks collide with my axes. ...
0
votes
3answers
87 views

Simple pattern/texture on chart elements [duplicate]

If I print the following BarChart in black and white, then it is very difficult to tell which bar is "a" and which is "b". ...
1
vote
2answers
132 views

How can I plot a 3-variables function to identify the neutral surface and a region

I wanted to plot a 3-D solid region, in which my function f(x,y,z)= x (1/(1 + 0.06))^3 + y (1/(1 + 0.06))^2 + (2 z^2)/15 (Sin[10 Degree])^2 -z/3 Cos[10 Degree] ...
1
vote
1answer
81 views

NDSolve not creating plots [closed]

This is probably stupid, but I wasn't able to find any way to get equations created from NDSolve to be plotted. ...
1
vote
2answers
98 views

Changing the Ticks in LogLinearPlot for representation pH values

I need to change the ticks in the xaxis for representation pH values, but the ticks are not dispersed along the range of xaxis. Another question: why the vertical line defined with Epilog is not ...
2
votes
0answers
69 views

How could I upload a XLS file to Cloud and then plot it?

I want to upload a file to the Wolfram Cloud and plot the list: So I use the following code to check its head at the beginning: ...
3
votes
2answers
142 views

Grid lines extending too far

The grid lines in the following plot extend beyond the data and, in particular, into the numbers along the axis. ...
15
votes
2answers
739 views

How to wrap a plot around a circle?

Consider the code a = Table[BesselJ[i, x], {i, 0, 3}] Plot[a, {x, 0, 20}, Axes -> False] producing I'd like to transform the plot into a circle. In other ...
1
vote
0answers
87 views

Can not understand the code to plot Fourier Series approximation of the line

I'm reading the CDF file from Making Formulas… for Everything in wolframalpha blog. When I step into In[9] and In[10], I'm fully confused. Who can tell me what does the two functions mean? The ...
0
votes
0answers
56 views

Empty Graph for Absolute Function

I wanted to plot the following equation: Plot[((x/7)^2 Sqrt[(Abs[Abs[x] - 3]/(Abs[x] - 3))] + (y/ 3)^2 Sqrt[(Abs[y + 3 Sqrt[33]/7])/(y + 3 Sqrt[33]/7)] - 1) (Abs[x/2] - ((3 ...
5
votes
3answers
300 views

How can we plot the complex roots of an equation?

If we'd like to display the $n$ roots of a polynomial on the complex plane as points, how can we do this? For example, if we have the equation $x^3 + x^2 + x + 1$, how can we plot the 3 roots as ...
22
votes
6answers
3k views

Fixing quirky typesetting in plot labels

Consider this example plot. Plot[ 1-Exp[-x], {x,0,3}, AxesLabel->{"thickness (μm)","power density (W/m^2)"} ] Let us hold the typographical quality of ...
0
votes
1answer
141 views

Plotting Integral equation

I want to plot the following indefinite integral : $C_l^{CC}=\int k^2\mathrm{d}k\: [e^{-2k^{2}}P_{Cl}^2(k\eta)|\dot{h}(\eta)|^2]$ with k from 0 to some large value (considered to be $\infty$), ...
-4
votes
1answer
54 views

Trying to get plots to work AGAIN

OK, I have asked stuff here before. I am probably driving people crazy but this is making me angry and frustrated. And yes, I bet this is some simple syntax thing but I can't figure it out and I am at ...
0
votes
1answer
92 views

Why is `B /. h -> #2 &` not a pure function?

I am trying to plot the energy surface of the mean field Ising model, but I am running into a problem with setting the MeshFunctions for the plot. ...
0
votes
1answer
80 views

Use separate options for different elements in Show

I have a few plots of different type. plot1 has gridlines and the rest do not. I use the option Method -> {"GridLinesInFront" -> True}] when plotting plot1. When I use Show to combine the plots the ...
1
vote
0answers
48 views

ColorFunction - custom colors and scaling

I am trying to implement my own colors and scaling into the ColorFunction which I use in ListDensityPlot. I have several lists of 2D values which I plot in multiple images and I want to scale the data ...
5
votes
3answers
147 views
7
votes
3answers
417 views

How to visualize the interior of a complicated 3d plot

I have an external data file (can be downloaded here: link 1 or link 2) which contains a dense grid of initial condition in the (x,y,z) space. I read it with Mathematica and plot these initial ...
0
votes
0answers
28 views

ErrorListPlot Not Plotting

I'm on Mathematica 6.0, it's the copy my school gave me for a lab course. ErrorListPlot produces a graph, but there is nothing on it. I have checked the table constructed using ErrorBar and it's good. ...
2
votes
3answers
90 views

Legend placement explanation

Could anybody explain, how the coordinates in Placed influence each other? ...
4
votes
1answer
70 views

RegionPlot with PlotRange vs RegionPlot with domain

Consider you want to plot R = ImplicitRegion[x > 0 && y == -((5 x)/3), {x, y}]; In ContourPlot of an ImplicitRegion defined by the intersecton of ...
2
votes
1answer
74 views

Scale coloring of ContourPlot

The answer given here solved how to use the same color scale across multiple plots within the function ListContourPlot. I can't for the life of me map this solution onto the function ContourPlot that ...
1
vote
1answer
67 views

Plotting a function in {X(Y),Y} space

The code below generates some data and defines a function f[x,cb]:=NMaximize[expr,x] that upon being evaluated returns: {function value at max $x$,the function maximizing $x$}. ...
0
votes
1answer
56 views

Display trailing zeros in ticks

When I specify tick marks in ArrayPlot I want to keep the number of trailing zero's that I specify. One work around is to use a label for that tick mark (i.e. Ticks->{0.8,0.9,{1.0,"1.0"},1.1,1.2}), ...
4
votes
2answers
199 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: ...
5
votes
4answers
134 views

ArrayPlot with variable width bars

I've been using a DateList plot to visualise property information but I don't think it's the best way display my data. My data is formatted as {time (hours), property} where property is an integer ...
0
votes
0answers
44 views

ContourPlot of an ImplicitRegion defined by the intersecton of equality and inequality

I want to plot a line defined IMPLICITLY by the intersection of an equality and an inequality, i.e. a line that you can't easily simplify (and therefore take advantage of its form). Consider for ...
0
votes
1answer
47 views

How to hold axis constant with Animate

So I am trying to use Animate for my 3D Plot, to see how the function changes with respect to time. But for some reason the z axis keeps rescaling such that the function appears to be constant (but ...
1
vote
2answers
109 views

Trying to create a Gain (Bode) plot

I am trying to get this code to work and I can't seem to figure out what's going on. I realize that "simple" syntax problems are frowned on here but to us noobs they are NOT simple. (and the ...