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

learn more… | top users | synonyms (6)

3
votes
0answers
16 views

ListLogPlot error when forcing y axes start at 0

I came across an error I can not circumvent. When plotting the following: ListLogPlot[Table[1/x, {x, 1, 100}]] I receive a functioning plot. If I now want to ...
2
votes
1answer
41 views

Mathematica 10 PlotRange->All

I have recently moved from Mathematica 8 to Mathematica 10, however im having a problem with PlotRange->All in combination with Show[]. For example, ...
2
votes
1answer
28 views

DateListPlot incorrect time zone

I'm trying to plot energy usage over time using datelistplot but the time zone on the ticks is wrong, data for 7pm shows as 3am The code: ...
12
votes
1answer
74 views

Change in Lighting and Show in V10?

According the documentation for Show: Options explicitly specified in Show override those included in the graphics ...
0
votes
0answers
22 views

Why does my contour plot have missing blotches? [on hold]

I think it may have to do with areas on the plot that are very small in value.
3
votes
1answer
45 views

Module inside of Manipulate Example

Here is a very nice example from The Student's Introduction to MATHEMATICA. ...
0
votes
0answers
32 views

How to change number form of Plot Legend in ListContourPlot? [on hold]

I am creating a ListContourPlot from some very large values. I would like these numbers to be written out in scientific notation (8x10^8, etc.) I've tried the following code: ...
5
votes
0answers
29 views

Override a PlotTheme element at the Options level?

Plot properties defined in a Theme override (supersede) properties defined on Options. This can be undesirable in a case such as: ...
0
votes
0answers
19 views

Vector field plot not appearing in VectorPlot3D

I am having trouble in plotting the vector fields - Bfield and Avector - with the VectorPlot3D function. Here is the code used to Compute Bfield and Avector: ...
8
votes
3answers
171 views

Part of an Image cut/lost when exported to EPS file

When making .EPS image files for publication, I tried to assemble several Graphics by Grid. For example, suppose I have: ...
6
votes
3answers
97 views

How can I change the thickness of tick marks in BarLegend?

This answer explains how to change various undocumented options for BarLegend with Method. In particular, I want to change the ...
1
vote
0answers
33 views

RegionPlot generates unwanted mesh lines [duplicate]

Consider this example: ...
0
votes
1answer
56 views

Plot a circle and create a 3-D revolution plot out of it

If I have the equation (x-2)^2 + (y-2)^2 == 1 I can use a ContourPlot, however am having trouble changing the axes origin. I ...
5
votes
1answer
90 views
6
votes
2answers
229 views

How to achieve a decent terminator line?

What I did: ...
3
votes
2answers
119 views
1
vote
1answer
75 views

How to plot a function defined by an expression containing integrals [duplicate]

It seems Mathematica does not like it when it is given a function defined by an integral to plot. How would one plot a function $F(x)=\int_0^x\int_0^xf(t,s)dtds$ on a given interval? Edit In ...
0
votes
1answer
99 views

How may I avoid ParametricPlot3D clipping? [duplicate]

What I am doing: ParametricPlot3D[{Cos[z/2]^6 * Cos[t],Cos[z/2]^6 * Sin[t], z}, {t,-Pi, Pi},{z,-Pi,Pi}] What I get: What I want: what I get, but without the ...
3
votes
2answers
203 views

Storing Variables in “Loops” and Point Plotting

Given the function $y=\sin x$ defined over the region $-\pi \leq x \leq \pi$, I need to implement a "do loop" such that I sweep over 100 or so points $-1 \leq y \leq 1$ and find precisely the two $x$ ...
1
vote
2answers
90 views

Plotting a function with implicitly defined variable

I have a question about plotting a function with an implicitly defined variable. I think the solution should be something similar like here: Define a function with variables linked implicitly but I ...
1
vote
1answer
48 views

Plotting function in cylindrical coordinates (r,theta,z) [duplicate]

I have a function of two variables (r,theta), and I would like to plot it as a surface using cylindrical coordinates. Based on my research, there is no built mathematica function for plotting ...
0
votes
1answer
62 views

Sum with 2 different variables

I want to plot Contour or Streamplot a function with a sum. The first part (Abs[v/u]>1) looks like this: $L(u,v)=\sum_{s=0}^\infty \frac{(-1)^s}{2s+1} ...
0
votes
0answers
49 views

The graph of a piecewise function [on hold]

Let $$f(x)=\begin{cases} n,\quad\text{if }\quad n<x<n+\frac{1}{n^3}, \\ 0,\quad\text{if }\quad n+\frac{1}{n^3}\leq x\leq n+1 , \end{cases}$$ Using mathematica, I attempted to draw the graph ...
2
votes
1answer
123 views

Plot not working for a phase diagram

Whatever I have tried, I could not achieve to plot numerical values coming from my system of differential equation. It is a optimal control model with two state variables. My differential system is ...
0
votes
1answer
40 views
2
votes
3answers
106 views

Integrate over Piecewise function efficiently

I have this Piecewise function: ...
0
votes
0answers
58 views

DateListPlot not showing data from a data bin [on hold]

I'm trying to plot a databin using mathematica online and this is my code: DateListPlot[Databin["640I6KQm"]] All that happens is data added manually shows up. ...
9
votes
1answer
65 views

NumberLinePlot missing large segments of interval

What is going on here? Why isn't it extending to the full range? Removing the + 0.0 gives the correct ...
1
vote
0answers
61 views

3D game from my Magic cube [on hold]

I'm a student of design. I created a Magic cube. How can I make this game with Mathematica? I have already imported a mesh *.obj with 192 triangles. If anyone knows how to do this please reply.
2
votes
1answer
99 views

Problem with code from Stan Wagon's book [duplicate]

Stan Wagon's Third Edition of Mathematica in Action has this code on page 30: ...
4
votes
1answer
126 views

Unexpected results from trying to solve Laplace's equation

I am trying to find the solution to Laplace's equation: $\dfrac{\partial^2 u}{\partial x^2}+\dfrac{\partial^2 u}{\partial y^2}=0$ over the following region of space: the vertices of the triangle ...
6
votes
2answers
99 views

PlotLegends “Expressions” default for ListPlot?

gwr pointed out an apparent problem with setting a default Option value of PlotLegends for DateListPlot. I traced the problem ...
0
votes
0answers
37 views

Adding known error bars to a bar plot [closed]

I want to add error bars that I already have calculated onto my bar plot. I can't seem to find a function that will do this. I've found ways to enter all the data and have Mathematica calculate, and ...
0
votes
1answer
38 views

Axeslabel doesn't work when using Frame and FrameTicks,

I'm using FrameTicks and Frame to get a second y-axis. But then my axes labels disappear. I've solved it by using ...
2
votes
2answers
66 views

How to transpose x and y axis on a LogLogPlot?

how can i exchange x and y Axis of this loglogplot? ...
2
votes
1answer
58 views

Blank plot when using WorkingPrecision

I have the following code: Inv=WeierstrassInvariants[{1,I/3}] ...
3
votes
1answer
51 views

Display frame-tick labels on top side

I am making a standard framed Plot and would like the frame tick labels for the horizontal axis to appear on the top frame edge. I know I can do this by hand ...
6
votes
5answers
339 views

Help remove annoying vertical lines in a piecewise plot

I use the following codes to define and plot three piecewise functions. ...
1
vote
2answers
91 views

How to define a sequence of piecewise functions and then plot them altogether?

The following is the piecewise functions I want to define ${f_k(x)} = \left\{ {\begin{array}{*{20}{c}} {\frac{{j - 1}}{{{2^k}}}}&{\frac{{j - 1}}{{{2^k}}} \le f(x) \le \frac{j}{{{2^k}}}}\\ ...
0
votes
1answer
49 views

BarChart: Want to rotate and place a y-axis label on the left side

I would like to know if it's posible to place the y-axis label roated on the left side without using Frame->True and ...
2
votes
0answers
95 views

Fitting local regression through data

Is there a way to fit local regression through data in Mathematica (equivalent to say "smooth" in ggplot-R)? I've literally spent the last hour searching the internet and documentation centre and I ...
2
votes
1answer
101 views

Plot a curve on a lattice

How do I plot a 2d curve and label lattice points to one side of it? I want to plot the curve $f[x]=\frac{1}{x}$, and draw a solid red dot at every lattice point in the following set: $$\{(m,n)\in ...
5
votes
1answer
100 views

VectorPlot only shows dots [duplicate]

I am trying to plot a electric field: vec = 1/(16 π ) Abs[{ex, ey, ez}]^2; ...
0
votes
1answer
39 views

Combining Plot and ListPlot using appropriate colours [closed]

I have Plot and ListPlot and I want to combine the using Show: ...
0
votes
0answers
50 views

Nesting a 2D Plane in a RegionPlot3D

So basically I am trying to project a 2D Region onto a 3D Region. Here is some code: ...
0
votes
0answers
34 views

Adding a legend to ListContourPlot [duplicate]

I am struggling to add a legend to my plots. I am using ListContourPlot and my data is ASiAufrontZnO, which is an array of data with three columns ...
0
votes
2answers
76 views

Easy way to add another parameter to Manipulate

Vector definitions: I'm sorry that I didn't include the Vector definitions. I forgot because I had them in initialization cells. Here they are: ...