Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

change the side of the axis plt python

f = plt.figure()
ax = f.add_subplot(111)
ax.yaxis.tick_right()
ax.yaxis.set_label_position("right")
plt.plot([2,3,4,5])
ax.set_xlabel("$x$ /mm")
ax.set_ylabel("$y$ /mm")
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: basic flask app 
Python :: abs function in python 
Python :: nltk bigrams 
Python :: add list to end of list python 
Python :: python remove spaces from string 
Python :: append element an array in python 
Python :: python get numbers after decimal point 
Python :: sqlalchemy convert row to dict 
Python :: private instance attribute python 
Python :: gpt-3 tokenizer python3 
Python :: python crash course 
Python :: python replace n with actual new line 
Python :: torch tensor to pandas dataframe 
Python :: sklearn random forest 
Python :: tf.reduce_sum() 
Python :: python verify if string is a integer 
Python :: add a new column to numpy array 
Python :: how to plot kmeans centroids 
Python :: best python gui for desktop application 
Python :: numpy get array size 
Python :: read image and resize 
Python :: python subset 
Python :: python round without math 
Python :: cosh python 
Python :: permutation python 
Python :: lable on graph in matplotlib 
Python :: global variables python 
Python :: sklearn train test split 
Python :: django validators import 
Python :: array creation method in numpy 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =