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
1answer
55 views

Range errors when plotting solutions of systems of equations

I would like to plot the points $(a,b,c)$ that simultaneously satisfy the equations $$a^2+b^2=1,\qquad ac+b\frac{1+bc}{a}=0,\qquad c^2+\frac{(1+bc)^2}{a^2}=1.$$ I attempted to do this with ...
0
votes
1answer
48 views

Adding a plot to a DynamicModule

How can I add a Plot or Plot3D to my DynamicModule (on the same panel) without having a negative impact on the original function? I tried different (for me) logical ways to add the Plot function, but ...
3
votes
1answer
137 views

How to solve Laplace equation in 3D?

Basically I want to solve Laplace equation for truncated octahedron in a cube matrix. The boundary condition is Concentration u=200 at surface of truncated octahedron and u=15 at boundary of cube. I ...
3
votes
1answer
85 views

Straightforward way to make a multicolumn line legend?

I have a plot showing 8 curves, and I'm able to define a line legend styled in either a column or a row version. I have the following code: ...
-2
votes
1answer
63 views

plot sum of two function

I am trying to illustrate sum of functions. I have one function x*x - 8*x + 7 and another Log[2*x + 4.5] I understand that I ...
5
votes
3answers
172 views

mixing color of individual parts of a function in DensityPlot

I have a function which is a sum of three terms and I want to plot it in a DensityPlot. However, I would like that the ColorFunction would be the RGBColor resulting of the mixed R color corresponding ...
4
votes
2answers
94 views

Paired Bar Chart with negative values

Dear Mathematica group I want to plot negative values using PairedBarChart in V9 However, with this code ...
1
vote
1answer
71 views

3D Plot for Attractive and Repuslive Field Functions [closed]

I am using Mathematica to plot the total potentials (which is the sum of an attractive potential field and a repulsive potential field) - This is related the Artificial Potential Field Method in ...
3
votes
2answers
147 views

How to put triangle graphics on a plot of two seperate related lists?

For 7 different discharge energies, I have two gases (1. pure helium, 2. a helium oxygen mixture) being heated up. Those 14 settings then enter a tube, in which the system cools off. In the list ...
0
votes
2answers
79 views

Finding the equation of tangent lines where a function has a specified slope [closed]

A function is defined as f[x_] := 3x^4 + 8x^3 - 24x^2 - 48x + 19 I need to find the equation of the tangent lines at the points where the tangent line has a ...
0
votes
1answer
55 views

Drawing a pair of lines to the x-axis and y-axis from a point along a curve

I have some plot like the following: Plot[Cos[x], {x, -10, 10}, AxesLabel -> {Style["x-axis", 12], Style["y-axis", 12]}, ImageSize -> {650, 650}] I'd like ...
0
votes
1answer
48 views

How can I modify text in a Graphics produced by Plot?

I have a Plot in a cell of a Mathematica notebook. The Plot was made with data that I no longer have. I want to modify the label of one of the axes, without running the plot command again (since I ...
6
votes
4answers
529 views

Combining 2D slices into a 3D plot

I am currently trying to combine several 2D plots into one big 3D plot. The 2D-plots are simply input-results from calculations (so these things have 2D coördinates (x,y)). The results depend on an ...
1
vote
1answer
33 views

ListAnimate for nested lists with two sliders

I have a very complicated function of three variables (a,b,c). Now I want to plot the function value as a function of a while ...
2
votes
2answers
135 views

How to use ContourPlot3D with a constraint

I want to draw $$G=G(P,T)=-k*T(1+\log{\frac{(V-1)T^{3/2}}{\Phi}})-\frac{a}{V}+P*V$$ but $V$ is an implicit function of $P$ and $T$, which is $(P+\frac{a}{V^2})(V-b)=k*T$ I tried to solve for $V$ ...
5
votes
6answers
213 views

PlotLegends for ListPlot with more than 15 curves?

fixed in 10.1 (windows) I'm running into trouble getting the right PlotMarkers in the legend of a ListPlot of many curves. ...
0
votes
0answers
27 views

Options from Graphics command [duplicate]

What do it mean $[[1]]$ in the following command? Graphics[...][[1]] How about the following command? ...
1
vote
1answer
48 views

How to rescale the axes on a 3D graph?

I currently have a graph in which the x and y axes take values on the order of 10^-4. Which looks messy, ...
0
votes
1answer
49 views

Solving coupled ODEs with NDSolve

Given the system of differential equations: $i\frac{d}{dt}c_{1}(t)=H_{12} E(t)e^{(iw_{12}t)}c_2(t)+H_{13} E(t)e^{(iw_{13}t)}c_3(t)$, $i\frac{d}{dt}c_{2}(t)=H_{21} E(t)e^{(iw_{21}t)}c_2(t)+H_{13} ...
5
votes
5answers
318 views

How do I plot the derivative of a function with absolute values? [duplicate]

Plot[D[Abs[x], x], {x, -10, 10}, Exclusions -> {0}] gives out several lines of error messages and an empty plot. ...
4
votes
5answers
251 views

Getting a 2D slice out of a 3D ParametricPlot [closed]

I have generated a 3D plot of a surface using the ParametricPlot3D command. Considering the three axes of the 3D plot to be x, ...
1
vote
2answers
161 views

Want to put additional items in my plot legend

I was able to plot most of the parts of the figure. But I have a problem with some legend items. Here is my code: ...
5
votes
2answers
86 views

Initial time as parameter in ParametricNDSolve

I need a help with the function ParametricNDSolve. My goal is solve the equation \begin{array} &&\dot{x}(t) = y(t) \\ &\dot{y}(t) = x(t)-1-\varepsilon Cos(\omega t) \\ &x(t_0) = x_0\\ ...
1
vote
0answers
49 views

Controlling the size of a Plot, ListPlot when using Grid view [duplicate]

Is there any way to control the size of output graphics when using simple Grid command? Here is an example code: ...
0
votes
1answer
95 views

How to solve and plot this 2nd order non linear ODE? [closed]

Is this the correct way to plot the solution of this ODE from $(-8, 8)$? $$y'' - (1 - (y')^2)y' + y = 0$$ ...
0
votes
1answer
60 views

Interpolating a non-continuous set of points

I'm trying to create a pure function that I can feed into OutputResponse[ ] as the input u[t]. In order to do this, I've written code to create a square wave pulse train in the form of a collection of ...
0
votes
1answer
93 views

several plots at once

I have several files what i would like to plot at once, they are .dat files and they have names as a numerical sequence from 1 to 4 (they are about a hundred but for the example 4 are ok) so i use ...
1
vote
1answer
67 views

Combine 3D plots into one with Manipulate and different region plots

The following script generates two plots in a row, both of them controlled by Manipulate. I would like to combine them together in one. The problem I don't know how to solve is that the plotting ...
1
vote
1answer
56 views

Contourplot gives inaccurate ellipses

I'm trying to draw a family of ellipses with pre-defined foci as follows: ...
2
votes
3answers
139 views

Graphical output sizes [duplicate]

Is there any way to control the size of output graphics when using simple Grid command? Here is an example code: ...
-4
votes
1answer
61 views

Jump phenomena for primary resonance of the Duffing equation [closed]

In this equation I will write omega (Ω) instead of amplitude (a). ...
0
votes
0answers
80 views

Periodograms and power spectra of a simple harmonic oscillator

This a just a trivial case of a simplified differential equation that I am using. I am not too happy with the Periodogram command. Let's say that I have the ...
0
votes
1answer
45 views

Inset raster graphic position and size

I need to rasterize a very complicate plot and superimpose this to another plot. For example ...
3
votes
2answers
130 views

How to draw a particular contour line in ListDensityPlot?

In the plot produced by the following code, I want to draw a contour line for $f(x,y)=0.8$. Here $f(x,y)=\sin(x^2+y)$, however, actually we don't know $f$, we've got the data only. ...
0
votes
2answers
90 views

Plotting a 3D function along a vector

Newbie here! If I have the 3D function (a, b, and c are specified by me), E[a_,b_,c_] := (x+a)^2 + (y+b)^2 + (z+c)^2. How would I go about getting mathematica ...
1
vote
2answers
61 views

PlotLegends in Show with listlog

I am struggling with proper plot legends in Show command for two plots created by LogListPlot command. ...
2
votes
2answers
160 views

Plotting difference between a function and its inverse function

I would like to plot the difference a function and its inverse function. (1/27)*(x^4-6x^3+12x^2+19x) (* where 0<x<5 *) I tried the following: ...
3
votes
1answer
108 views

Modify ticks without specifying tick length

I am making a ListPlot, in which the x-axis is the result of AbsoluteTime. I want the tick text to be human-readable by applying ...
1
vote
1answer
89 views

Plotting less of a sphere

It is a follow-up question from this one. I'll put the code at the end. So far, I have: Notice how nearer $z$ is to $0$, the more transparent the sphere is. I don't want to plot the whole ...
2
votes
1answer
85 views

RegionPlot3D does not plot “thin” regions?

Basically, I ultimately want to make something like this: However, I am unsure of how to do this in Mathematica. I'm trying to do this via RegionPlot3D, and for ...
2
votes
0answers
61 views

Finding and plotting roots with parameter

I have the following function: $$ u(x,t)=\sum_{k=1}^\infty\frac{v_0 L}{\lambda_k c \sin\left(\lambda_k\right)}\sin\left(\frac{\lambda_kx}{L}\right)\sin\left(\frac{\lambda_kct}{L}\right) $$ and this ...
0
votes
1answer
57 views

Draw filled regions in DateListPlot

How do I draw specifiq filled regions in DateListPlot? I trying to plot something like this: Thanks
0
votes
2answers
50 views

Proper arguments to ListPlot? [closed]

...
0
votes
1answer
52 views

NDSolve printing error message NDSolve::ndode [closed]

Using NDSolve while solving system of ODE's. Here is my try ...
0
votes
1answer
88 views

Plotting Complex Numbers - Functions of Complex Numbers [duplicate]

So I have to generate a few different plots with z, where z is a complete number... z[x_, y_] := x + y*I F[z_] := (25*Pi*z*I)/(1 + 10*Pi*z*I) First, I need to ...
0
votes
1answer
69 views

How to plot and visualize a single linear vector in 3D? [closed]

I have a vector (in physic) designated as F1=250cos(60)i+250cos(60)j+250cos(45)k, and i would like to see it in a 3D graphic with the axis centered at the origin, after what i would include other ...
0
votes
1answer
79 views

Equivalent parametric plots don't look the same

ParametricPlot[ {1, Tan[t]}, {t, -Pi/3, Pi/3}] ParametricPlot[ Sec[t] {Cos[t], Sin[t]}, {t, -Pi/3, Pi/3}] The second parametrization does not plot like the first, ...
0
votes
0answers
55 views

How to extract data points from an image of a log log plot? [duplicate]

I have a picture of a log-log plot, taken from a paper and I want to extract the data points so I will be able to plot them again along with results of my own solution. I would appreciate your help. ...
1
vote
0answers
50 views

Evaluating documentation example crashes the kernel

Save your work before attempting: Could someone confirm what looks like a bug (definitely occurs in v10 and OSX 10.8.5): In the documentation for Background and ...