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

learn more… | top users | synonyms (10)

1
vote
1answer
92 views

Plotting data from a Table in Mathematica

I have been able to solve some differential equations using Tables. The code works fine without errors. However, I am unable to plot the results. Any help would be appreciated. ...
9
votes
2answers
128 views

Animating a growing ListPlot

I stumbled upon this (rather contrived but interesting) integer sequence. As it exhibits quite different behaviour at different scales, I would like to generate an animated ...
6
votes
1answer
137 views

Bug in Export - known by Wolfram Support - upper plot margin depends on string length of upper horizontal axis label

Bug introduced in 9.0 and persisting through 10.3 or later ! See at bottom the answer by Wolfram Research. I am running Mathematica 10.3. For test purposes I have used the following code: ...
3
votes
1answer
109 views

Is there a way to control the placement of individual tick mark labels?

Let me start by saying there are a lot of other questions here on SE and elsewhere about tick marks in MMA but I think I am correct in saying that none of them cover exactly what I want (apologies if ...
0
votes
2answers
67 views

If Which Piecewise-defined function [closed]

How would I write a function using If and/or Which command for following Piecewise-defined function then plot the function ...
0
votes
0answers
67 views

ensemble averaging

Herephixis $\phi_{xx}$ a coherence matrix and the angle brackets denote ensemble averaging. $E_x$ is the x component of the electric field. $$\phi_{xx}=\langle ...
2
votes
3answers
118 views

Function of surface roughness

How do I draw with Mathematica a function like this? I would use a series of circles and find the surface. Thanks!
0
votes
1answer
86 views

Plotting an Infinite series question [closed]

I am trying to plot the infinite sum: $$u(x,t)=∑_{n=1}(8L^2/(2n-1)^3π^3)\sin(((2n-1)πx)/L)e^{(-(2n-1)^2π^2kt)/L^2}$$ with $L=1$, $k=1$ and $t=0.1$, $0.2$, $0.5$, $1.0$, $10.0$. This is what I have ...
0
votes
2answers
61 views

ListPlot of imginary part

Assuming I have a list like: {{1, 1. - 0.0169212 I}, {2, 0.99611 + 0.0326189 I}, {3,1.02048 + 0.0945609 I}, {4, 1.02722 + 0.138977 I}} When I try now ...
1
vote
1answer
51 views

Y-axis Tick labels are all identical [duplicate]

For Plot[x^12 - x^9 + x^4 + 1, {x, -.001, .001}] Details on Y-axis seem to be wrong.I am using V 9.0.1.0 .Bug?
2
votes
2answers
72 views

Getting axes range from plot (of the plot) [duplicate]

Related to this question in a way. After making a plot, I'd like to get the plot range (not the range of the function, but the range chosen for plotting which usually leaves some buffer room). I've ...
1
vote
2answers
95 views

Avoiding Smoothing in ListSurfacePlot3D

I'm loading a dataset {x,y,z,v} from a text file. It is about a triangulated surface and then I am using ListSurfacePlot3D to plot it. However, ListSurfacePlot3D is ...
2
votes
1answer
54 views
4
votes
2answers
137 views

How can I plot an impulse series within a square wave?

I want to plot a repeated impulse of 1 millisecond (ms) within a signal of 61 Hz (16ms). My current code is: ...
2
votes
0answers
140 views

How to convert an uploaded image to a “dot-to-dot” puzzle? [closed]

I would like to upload an image to Mathematica and have the software place numbered points throughout the image so that it appears as a "dot-to-dot" image puzzle. I would also like to specify exactly ...
4
votes
0answers
70 views

Planning flights for a special route

I want to plan a world trip with Mathematica. So I already have the dataset with all the cities I want to visit and the tour (with the command FindShortestTour). So ...
1
vote
3answers
584 views

how to plot 3d graph for x^2 - y^2 = 1? [closed]

How to plot 3 dimensional graph for x^2 - y^2 = 1? I am already using it and I only can plot in 2 dimensional graph. Can someone help me with this problem?
3
votes
2answers
100 views

Difference Colored legends from main plot

I am using the below code to create legends but I don't know why the colors in legends for various plots are different of devoted to main color of plots From ...
3
votes
1answer
259 views

Axis break in Mathematica [duplicate]

I'm looking for a way to make a plot similar to the one I've sketched. So far all I've found is this discussion, which mostly uses Grid. I want the second part of ...
2
votes
1answer
55 views

Interpret hexadecimal sequence as a binary matrix that can be used in AdjacencyGraph

I have a database of hex sequences stored as blob. Each of them is a binary matrix representing the adjacency matrix of a directed graph. I want to use the ...
15
votes
5answers
758 views

Magnifying Glass on a Plot

Although there is a trick in TEX magnifying glass but I want to know is there any function to magnifying glass on a plot with Mathematica? For example for a function as ...
0
votes
1answer
68 views

Attaching labels to the vertices of an Octahedron

How do you attach the labels (e1,e2,e3,e4,e5,e6) to all 6 vertices of the Octahedron below, ensuring that the labels of the first figure corresponds to the end ...
1
vote
1answer
74 views

Labeling the vertices of a graph

I would like to label the vertices of a complete graph alphabetically. But I am stuck because I don't know how to associate only one vertex to a letter. ...
4
votes
3answers
169 views

How to plot real roots of complex polynomials avoiding branch cuts?

Lets say I have the following matrix: M={{1,3+E^(I x),-1+2I x},{3+E^(-I x),2,E^(3I x)},{-1-2I x,E^(-3I x),-2}}; $$ M=\begin{pmatrix} 1& 3+\mathrm e^{ix} ...
1
vote
1answer
169 views

Plotting singular integral

I need to plot the following singular double integration $u(x,t)$ for $t=0, t=0.2, t=0.4, t=1$ and $t=2$ in one figure as a line. That is, I need $u$-coordinate vertically and $x$-coordinate ...
2
votes
0answers
134 views

Bifurcation Diagram of Chua Circuit [closed]

I am currently working on a Bifurcation Diagram for Chua's Circuit but I am having trouble coming up with code for a bifurcation of a system of equations. The following equations are given in the ...
-1
votes
2answers
100 views

Make plot of parametric function with piecewise components

How can I plot this curve in Mathematica: $\begin{align} x(t)&=\begin {cases} 2 (t-n+1) \: , \: t\in [n-1,n-1/2] \\ 2-2 (t-n+1) \: , \: t\in [n-1/2, n] \end {cases}\\ y(t)&=\begin {cases} 2 ...
0
votes
0answers
44 views

Anyway to add Epilog graphics outside of plot area without extending the axes? [duplicate]

I'd like to be able to add a line below the x-axis of my plot but not have the y-axis extending down to cover this region (as it defaults to). For example: ...
5
votes
2answers
108 views

Align ColorBar (axislabel) to be parallel to the y-axis for any view-angle

The following code produces the 3D plot below (which is almost what I want). ...
0
votes
1answer
124 views

How to draw normal vector in Mathematica? [duplicate]

Question If I have plane equation $x+y+z=0$, then normal vector is $\{1,1,1\}$. Why is it not normal visually? How can I draw it properly? Code ...
0
votes
1answer
147 views

How can I visualize a frequency as square wave?

I'm trying to get a typical square wave of a 16MHz and 50Hz signal withing a y-range of 0 to 1. My code is: ...
0
votes
1answer
84 views

integrate over the values in the first quadrant [closed]

With these formulas I get two slopes. e describes the energy. How can I integrate over the first quadrant for the values of e? ...
1
vote
2answers
50 views

substitute tangents plane in a function [duplicate]

Let f:= x^5+x^2*y*z^2+z^3*x*y; and let S= {{2,1,0},{7,7,1},{5,1,0},{3,0,1}} be a set of points . I need to calculate the tangent ...
5
votes
3answers
135 views

Plot 2 plots together with different y-axis: in version 10 will not plot entire range

I am trying to plot 2 plots together with a common x-axis and different y-axis. I have tried implementing the modules shown in 1 Plot, 2 Scale/Axis however I do not see the full range of data in the ...
0
votes
1answer
77 views

Is it possible to project a 3D contour plot onto two dimensional space? [duplicate]

I like to draw project of ContourPlot3D into "p-q" plane, but is it possible to do it with Mathematica? Here is my ContourPlot3D: ...
3
votes
1answer
72 views

Polar plots ticks in degrees -180 to 180 [duplicate]

I am trying to create a polar plot with the ticks in degrees, but instead of 0 to 360, I want -180 to 180. PolarTicks -> {"Degrees", Automatic} gives 0 - 360, ...
1
vote
1answer
80 views

How to animate a graph generated by ListPlot command point by point?

I was wondering if it is possible to animate the following graph. The command used to generate the graph is the following: ...
1
vote
1answer
111 views

Import graphml file in mathematica

I am trying import a graphml file I created with NodeXL in mathematica in order to create a network. However when i try to import it I get the error message: "Cannot import data as GraphML format". ...
0
votes
0answers
35 views

Option ItemAspectRatio in GraphicsGrid has weird behaviour in MMA 10.3

Has anybody noticed that the Option ItemAspectRatio in GraphicsGrid is no longer valid? It ...
2
votes
1answer
105 views

How to put the result of NDSolve in a function?

I have solved an ODE with NDSolve, and put the result in S: S = NDSolve[{y'[x]==(y[x]^4+y[x]+1)^(1/2),y[0]==0}, y, {x, 0, 100}] But i don't want to plot y[x] ...
3
votes
1answer
211 views

How to plot heatmap function over the unit circle

I have a function $Z(r, \theta)$ that I would like to plot over the unit disk. I could of course plot it as $Z(\sqrt{x^2+y^2}, \arctan(y/x))$, but the best I can do with this is a square plot. I would ...
5
votes
1answer
99 views

inset legend from top right corner / find size of swatchlegend bounding box

The question is the following. Using Inset, we can insert a legend in a Plot (in a Graphic, in general). E.g. ...
8
votes
1answer
152 views

Alignment of `TreePlot`

I want to construct a binomial tree using TreePlot but have troubles with the alignment. The code ...
0
votes
1answer
49 views

Error bars missing from list plot

I am trying to make a ListPlot with errorbars by using Filling. However, is some cases, some of the errorbars are missing. Why? ...
2
votes
3answers
107 views

How to make plot and a graphics have vertical axes align in grid [duplicate]

How can I modify the following code so that the vertical axes in both the graphics and plot align up? I think the aspect ratio for the plot is good. It appears that changing the ImageSize of the plot ...
7
votes
2answers
192 views

Parametric plot on multi-dimensional domain

I wish to plot all the points in 3 space that satisfy the following conditions. $$ (x,y,z) = (a^2+b^2, ac+bd, c^2+d^2) $$ for $a,b,c,d$ in some range. I have tried the following. ...
6
votes
0answers
112 views

How can I export 3D plots as vector graphics? [duplicate]

Consider the following simple example code: plot3D = ListPlot3D[{{0, 0, 1}, {1, 0, 0}, {0, 1, 0}}, Mesh -> All]; Export["plot3D.pdf", plot3D] As clearly seen, ...
2
votes
1answer
54 views

How can I get Tooltip to use a string variable as its parameter?

I have an x/y data set casualties with Union and Confederate Civil War casualties. I have a third variable, battles, listing the names of all of the battles. Currently ...
1
vote
1answer
87 views

Fourier Series plot

I'm trying to plot partial sum of Fourier series. I've finally managed to make it work but there are several things I don't understand ...
1
vote
2answers
108 views

A 2D-plot with second X-axis [duplicate]

I plotted a simple function with: ...