top of page

Python

Public·1 member

Write a Latex formula in the legend of a plot using Matplotlib


import matplotlib.pyplot as plt
ax = plt.gca()  # or any other way to get an axis object
x = [0,1,2,3,4,5,6]
y = [0,1,4,9,16,25,36]
ax.plot(x, y, label=r'$\sin (x)$')
ax.legend()

Write a Latex formula in the legend of a plot using Matplotlib
Write a Latex formula in the legend of a plot using Matplotlib

256 Views

Hotel managment System APP in Python

This is Hotel management System App in python using python shell


Hotel managment System APP in Python
Hotel managment System APP in Python

Welcome message:

****************************************

WELCOME QWERTY TO HOTEL

****************************************


897 Views

Python Examples and Sample Code


When you're learning, small examples can be very helpful.


The Python Standard Library, an electronically published book by Fredrik Lundh, examines most of the modules in Python's standard library, describing what the module does and giving a short example of its use.


The Python Cookbook, from ActiveState, is a very large collection of code snippets, some elementary and some advanced.


60 Views
    bottom of page