Embellishing a plot - English
- Questions posted on Forums
- Python 3.4.3 Tutorials - English
-
What is x and sin(x) refers to in plot(x,sin(x)) command
Hi Team,What is X and Sin(x) represents inside plot(x,sin(x)) command. Could please explain.
00-01M 40-50SMay 15, 2025, 8:38 a.m. Absolute
-
Regarding sin and cos
hi there how we know that when to use sin and cos? and what is -pi and pi?
03-04M 50-60SMay 15, 2025, 3:33 p.m. jay008
-
plot graph
if i want a transparent graph what all should we do to get a transparent background graph directly is their a solution.
05-06M 30-40SMay 15, 2025, 10:17 a.m. Masteranmol
-
How to use this python and in which fild I will use ?
I see this tutorial but I am not understand that it's use ? Can I draw any type of mathematical model with the help of this plot ?
01-02M 0-10SMay 14, 2025, 10:01 p.m. manishapatelharmaini@
-
Facing error for X lable
Facing error for X lable command while Y label command work properly, kindly guide me if I doing any mistake in syntax.
08-09M 50-60SMay 15, 2025, 4:08 p.m. jyotis
-
Assignment Solution Doubt: Ylabel text alignment
In the solution to the question number 2, the answer is given as No.But it is possible to modify the alignment of the given label using **kargs of text. That means:ylabel("Y", horizontalalignment='left', verticalalignment='top')would modify the text alignment of the Y label.Then why the answer to the solution is given as No?
12-13M 40-50SMay 14, 2025, 4:15 a.m. roshkj
-
Plot Line style
In following command plot(x,sin(x),'2r')What 2 signifies ?
04-05M 40-50SMay 15, 2025, 9:20 a.m. mdaipayan1986
-
regarding linewidth
what is the maximum linewidth we can enter in python??
03-04M 30-40SMay 15, 2025, 9:55 a.m. Minjal
-
xlable
after typing xlable() and ylable() command, a name error displayed:NameError: name 'xlabel' is not defied
08-09M 10-20SMay 15, 2025, 11:01 a.m. vineetsingh23
-
plot(x,sin(x),'r','.') command nt showing dotted line
Dotted line in graph not reflected
04-05M 30-40SMay 15, 2025, 9:05 a.m. meghna_bhatia
-
usage of of line type
plot(x,sin(x),'r--',linewidth=3)in the above format we use '--' as line style.what should i do if i want to plot it using dots ' . ' or plus sign '+'.if i palce dot or plus in place of - it is dispalying an error
05-06M 20-30SMay 15, 2025, 3:43 p.m. Hema1122
-
usage of of line type and colour
when i type plot(x,sin(x),'r--',linewidth=3) it is showing an error thatillegal format string "r - -";
05-06M 20-30SMay 15, 2025, 3:41 p.m. Hema1122
-
plot()
After using plot(x,y), if i give title("graph"), a blank graph is created. How to merge the title, xlabel, ylabel with already created graph?
09-10M 0-10SMay 15, 2025, 5:35 a.m. DhivyaRathinasamy
-
why the value of ylabel coming as 42.7 ?
00-01M 30-40SMay 14, 2025, 11:39 p.m. gauravpatni
-
Latex Styling
What is the requirement for including 'r' before the title in latex styling?
03-04M 20-30SMay 15, 2025, 7:37 a.m. Shinychisto
-
annotate command not working
Why this command is not working annotate("local maxima" xy=(2,-1))?
05-06M 50-60SMay 15, 2025, 3:38 p.m. dipakr
-
alignment of text in ylabel command
what is the use of this **kwargs parameter i.e .Text properties
11-12M 50-60SMay 15, 2025, 4:31 p.m. Rainism
-
Embellishing plot
In [68]: title("Parabolic function -x^2+4x-5")Out[68]: Text(0.5, 1, 'Parabolic function -x^2+4x-5')
00-01M 0-10SMay 15, 2025, 3:46 p.m. sunaina3110
-
Embellishing plot
plot(x,sin(x),'b--,linewidth=3) File "<ipython-input-61-43923530a9ca>", line 1 plot(x,sin(x),'b--,linewidth=3) ^SyntaxError: EOL while scanning string literalWhy it is showing error with statement ?
01-02M 0-10SMay 14, 2025, 11:52 p.m. sunaina3110
-
Embellishing plot
plot(x,sin(x),'b--,linewidth=3) File "<ipython-input-61-43923530a9ca>", line 1 plot(x,sin(x),'b--,linewidth=3) ^SyntaxError: EOL while scanning string literalWhy it is showing error with statement ?
01-02M 0-10SMay 15, 2025, 8:16 a.m. sunaina3110
-
Color of plot
While completing the exercise given in video, I written the code plot(x,cos(x), '.',"r", linewidth=3).The output plot I obtained was of blue color rather than red.
05-06M 30-40SMay 15, 2025, 3:50 p.m. geetachhikara
-
Not Geeting title on current graph
as per instruction all works good till above mention time. after that when i am going to give title to current plot it will show me blank graph with title. and after that for all other option i am getting same, blank graph and particular command output.
06-07M 30-40SMay 15, 2025, 2:30 a.m. manojradadiya
-
Title command is not working
while i give title("name") it returns an error str object not callable
07-08M 0-10SMay 15, 2025, 9:21 a.m. T.Dhivya
Questions posted on ST Forums:
Outline:
Use Python 3.4.3 Use Ipython version 5.1.0 Modify the attributes of a plot Pass additional keyword arguments to plot command Add title to a plot using 'title' command. Incorporate LaTeX style formatting by adding a $ sign before and after the string. Label x and y axes using xlabel() and ylabel() commands. Add annotations to a plot using annotate() command. Get the limits of axes using xlim() and ylim() commands. Set the limits of axes using xlim() and ylim() commands.
Assignment
Status: