I'm sure this is an incredibly simple question but I've recently started using Mathematica so it's all new to me. How do you scale the y axis? I try the following but it won't compile.

```
Plot[y = {Exp[-(x^2+3x+2)]}, {x, 0, 5}, {y, 0, 1}]
```

The PlotRange option is what you are looking for.

`Plot[-x^2+3x+2, {x,0,5}, PlotRange->{0,1}]`

Similar Questions

I have a function that returns equalities, which I want to print, for example, x==y, or 2x+5==10. These usually have no meaning for mathematica, it cannot simplify it furhter. However, sometimes the b

I need to know how to remove the numbers from X and Y axes. I'm don't think this is related to the X grid or Y grid because in the axes Inspector the XGrid and YGrid is in off state. I tried all but

I am writing test-cases for a problem,I want to check my test-cases with Mathematica but I am facing some problems with file input/output. I have to take Input from a file say Test.in,the date consi

When laying out a figure in MATLAB, typing axis equal ensures that no matter what the figure dimensions, the axes will always be square: My current problem is that I want to add a second axes to this

I am working on scaling images for my app to make them look great for every screen. I think I follow the different scales for mdpi, hdpi, xhdpi, xxhdpi, etc. The trouble I am having is that the smalle

I am looking for a means to add an additional axis pair, both tilted and origin displaced. They should be added to axes already used for displaying an image. The result should look somehow close to

This is very programming related but a somewhat non-programming question. I am performing image scaling in a web based application and I need to maintain my image relative to a fixed location even tho

In Interface Builder, you can select how you want a button's image to be scaled, choosing either Axes Independent, Proportionally Down, etc. for the Scaling drop-down. How can I access or change thi

I have an imageview that I am scaling and rotating via UISliders. Here is how I do so: - (IBAction)sizeSlider:(UISlider *)sender { int SCALE_MAX = 200; int SCALE_MIN = 10; CGAffineTransform transform

I want to select 2 values chosen by 2 different sliders and set these values as the min and max of an axes. So, slider_a should give the min value of the axes, slider_b the max value of the axes. I fa

I was wondering if there was any way to have mathematica find the solution to Schrodinger's equation [(−h^2/2m)(d^2ψ/dx^2) + kx^2ψ=Eψ] for a particle centered at the origin. I keep getting a Tag Plus

is there a built-in function or made already code in mathematica that computes a unitary diagonlization of a given matrix? I.e, if the matrix is: A then I want to find P and D such that: A=P* D P , wh

The output to my mathematica cell is just a long algebraic equation produced from Solve[%, Subscript[u, i, j + 1]]. {{Subscript[u, i, 1 + j] -> (1/( 2 h^2))(-2 h^2 k Subscript[f, i, j] + 2 h^2 Subs

I use this code to load an image into matlab axes in gui : [FileName,PathName] = uigetfile('*.jpg','PLease select an image'); axes(handles.axes1) rgb = imread(strcat(PathName,FileName)); imagesc(200,2

Is there a way to write text in mathematica so you have something like x/f(x) without getting 1/f? writing Text[x/f(x)] doesn't help.

I need to perform video scaling in my C++ app. I know I can use COM to communicate to C#, and I know C# can perform video scaling, so I am thinking of bridging the two worlds. How can I, using C#, sca

I have a function which I know to be a multivariate distribution in (x,y), and mathematica is having numerical stability issues when I form the marginal distributions. For example, marginalizing along

I am trying to solve a generalized eigenvalue problem with Mathematica. I want to find the eigenvalues and eigenvectors of the matrix A with respect to B. But when I use Eigensystem I receive the foll

I am plotting a contourmap. When first plotting I noticed I had my axes wrong. So I switched the axes and noticed that the structure of both plots is different. On the first plot the axes and assignme

Could you please give me a hint how can I invoke a java project (written in eclipse) from Mathematica? I want to give values generated by my Mathematica program as input to a java project, and use the

I want to make a module in mathematica that returns if an automaton is deterministic or not. I am considering that an automaton is not deterministic if there are 2 transitions that start at the same s

how can i write this command from mathematica to matlab? total = Apply[Plus, Flatten[mlat]]/L2 ,where L2 is a value and mlat a matrix.

I need to match the resolution of x- and y-axes in matplotlib, so that the linear function y=x would plot as an exactly 45° line, and so that a mathematically plotted circle (r^2=x^2+y^2) would appear

I am trying to plot several points with error bars, with two y axes. However at every call of the plotCI or errbar functions, a new plot is initialized - with or without par(new=TRUE) calls -. requir

I am interested in finding an antialiasing algorithm which can be used on a line of any shape (not just straight lines). I notice that Mathematica seems to have a very good algorithm and can draw fine

I need to convert some code from Matlab to Mathematica. At some point I have fspecial('gaussian', 11, 1.5) I am confused about what will be equivalent to write in Mathematica. In Matlab I get: 0.0000

(http://s1273.photobucket.com/user/Chethan_tv/media/CBIR_zpsb48bce14.jpg.html) Above image is my final output, open push button is used to view image displayed on respective axes. I've used following

I imported a table in mathematica using Import[..file,table] now I cant use the numbers in the table as they are in string formta, can someone please explain how can i convert them from string to

I am new to Mathematica and am trying to understand patterns and rules. So I tried the following: A = {1, 2, 3, 4} A //. {x_?EvenQ -> x/2, x_?OddQ -> 3 x + 1} This is based on: http://en.wikip

I have some questions about scaling with ASP.NET environment. I'm in the start to build an application that I hope will get a lots of users, and if that's the case I need to know more about scaling. I

I've a problem with doing scatter3 in my gui axes, that the scatter3 function do not support passing the axes handle as a parameter. Function syntax from Mathworks documentation [ There is nothing abo

I am trying to create an arrangement of three scatterplots with shared axes and marginal histograms. This seems like it should be simple, but it's giving me fits. I have tried approaches with gridExtr

i try to get an Image out of Mathematica. I try to evaluate some Mathematica Code that uses Methods in Packages to generate Graphics. If i paste the Code to a Mathematica Notebook the Graphic is gener

I recently updated from mathematica 7.0 to 8.0, and have now encountered problem with replacing my plot labels with LaTeX code using the psfrag package. Everything worked perfectly with the earlier ve

I am trying to plot a few points on the following picture in Mathematica: ParametricPlot3D[ {{u, v, (Cos[u] + Cos[v])/3}, {u, -1, (Cos[u] + Cos[0])/3}, {5, v, (Cos[4] + Cos[v])/3}}, {u, -4, 4}, {v, 0,

Is there a reason or something that I am missing that has Sitecore return true for both Item.Axes.IsDescendantOf() and Item.Axes.IsAncestorOf()? var test = Sitecore.Context.Database.GetItem({862B466A

Suppose I want to run a Mathematica program that I wrote, in a cluster or using a cloud computing solution. Can Mathematica programs run on their own without a license? And in case they don't, do clou

I'm trying to make a pseudocolour image plot in Python Matplotlib, but I'm having a small problem with the layout- the axes tick labels are very small numbers (1e-7 or so), so Matplotlib puts an expon

http://wiki.openstreetmap.org/wiki/Mercator With the C# example in the above link, I am able to project lat/lon to x/y co-ordinates. However, I'm having problem with scaling. I wonder how much length

I am encountering some strange behavior with using the matplotlib.pyplot ginput() function to store clicked points. On the first click, the ranges of the axes of the clicked image change to add 200 on

I'm dealing with large input arrays with Mathematica and it looks like I can't process anything bigger than (or equal to) 1024*1024 and 81*81*81. Is that normal? Should I be able to do computations on

As you can understand from the title i have some problems with the scaling with what i am building at the moment. On my GalaxyS5 everything runs perfectly, however when i try to run it on a Samsung ta

does anyone know how to switch on the axes INDICATOR in python code? I can switch it on when the graph is plotted, but I wanna know how to do it in code. I have found only how to switch on the axes: m

I'm plotting 2 subplots, and I want each subplot to have different axis scaling. My current code is: subplot(2,1,1) axis([0 20 0 1]) plot(t,Ca,'-.',t,Cb,'.',t,Cc); subplot(2,1,2) axis([0 5 0 1]); plot

I need to display x-y-z axes like in VTK (vtkaxesactor class) in OpenGL, Which comes on the lower left of the scene. I am looking for a 3(x,y,z) coloured axes in the foreground, that gives a sense of

Here's a challenge to all mathematica tag followers. Let's make it a lot more convenient to insert images into SO post from Mathematica by creating an imgur uploader. How can we create a function imgu

How can I write the code for a function (complex contour) similar to this in Mathematica:

I've never been able to understand the best practice in this context . I usually want to ship my game with as minimum size as possible. so where ever possible , I try to use scaling of graphics . Let

Firstly, this is a duplicate question: Equal-height scaling cells in an html table The user that asked the question above didn't get a solution for the same issue I'm having. Within the JSFIDDLE you w

How do I change sizes of axes (min - max limits). In my GUI I have used Axes object and I want to set manual size of X and Y axes through Edit text field. This is picture of my GUI: