Articles on Trending Technologies

Technical articles with clear explanations and examples

Tutorix - AI Tutor

Which is Better to Learn Machine Learning: C++, Python, or R?

Devang Delvadiya
Devang Delvadiya
Updated on 27-Mar-2026 528 Views

Machine learning (ML) is the study of computer algorithms that learn patterns from data without explicit programming. When choosing a programming language for ML, three popular options are C++, Python, and R. Each has distinct advantages depending on your goals and experience level. What is Machine Learning? Machine Learning enables computers to identify patterns and make predictions by processing large datasets. It's widely used in healthcare, finance, e-commerce, manufacturing, and transportation. Tech giants like Google, Apple, and Microsoft rely heavily on ML to enhance user experiences and optimize operations. C++ for Machine Learning C++ is a ...

Read More

How to manually add a legend with a color box on a Matplotlib figure?

Manthan Ghasadiya
Manthan Ghasadiya
Updated on 27-Mar-2026 4K+ Views

Matplotlib is a popular data visualization library in Python known for its flexibility and high-quality visualizations. By following this tutorial, you will learn how to create a legend with a color box on your Matplotlib figure, making your visualizations more informative and visually appealing. A legend is a key that labels the elements in our plot with different colors, markers, or lines. By adding a legend, we can understand the data being presented and make it easier for the audience to interpret our visualizations. Syntax To manually add a legend with a color box on a Matplotlib ...

Read More

How to manually add a legend color and legend font size on a plotly figure in Python?

Manthan Ghasadiya
Manthan Ghasadiya
Updated on 27-Mar-2026 2K+ Views

This tutorial explains how to manually customize legend text color and font size on a Plotly figure using Python. Plotly is a powerful data visualization library that creates interactive charts and graphs. While Plotly provides default legend settings, you may need to customize the legend appearance to match your specific design requirements. Syntax Use Plotly's update_layout() method with the legend_font_color and legend_font_size parameters to customize legend appearance ? fig = px.scatter(df, x="x_column", y="y_column", color="category_column") # Set legend font color fig.update_layout(legend_font_color='red') # Set legend font size fig.update_layout(legend_font_size=14) # Or combine both parameters ...

Read More

How to Make Stripplot with Jitter in Altair Python?

Manthan Ghasadiya
Manthan Ghasadiya
Updated on 27-Mar-2026 502 Views

A stripplot with jitter is an effective way to visualize the distribution of a continuous variable across different categories. In Altair Python, we use mark_circle() to create the plot and transform_calculate() to add jitter, which spreads overlapping points horizontally for better visibility. Syntax The basic syntax for creating a stripplot with jitter in Altair involves creating a chart with circular markers and adding calculated jitter ? import altair as alt # Basic stripplot with jitter syntax alt.Chart(data).mark_circle(size=50).encode( x=alt.X('jitter:Q', title=None, ...

Read More

How to display the days of the week for a particular year using Pandas?

Manthan Ghasadiya
Manthan Ghasadiya
Updated on 27-Mar-2026 364 Views

Pandas is a powerful Python library for data manipulation and time-series analysis. When working with date data, you often need to find all occurrences of a specific weekday in a given year. Pandas provides the date_range() function to generate these dates efficiently. Understanding date_range() Function The pd.date_range() function creates a sequence of dates based on specified parameters. For weekly frequencies, it uses the format 'W-XXX' where XXX is the three-letter day abbreviation. Syntax range_of_dates = pd.date_range(start, periods, freq) result = pd.Series(range_of_dates) Parameters start − The starting date of the range (e.g., ...

Read More

How to display text on Boxplot in Python?

Manthan Ghasadiya
Manthan Ghasadiya
Updated on 27-Mar-2026 2K+ Views

A boxplot (also known as box-and-whisker plot) is a graphical representation that displays the median, quartiles, and outliers of a dataset. The box represents the interquartile range (IQR), with the median shown as a line within the box. Whiskers extend to show the data range, while outliers appear as individual points. You can add text annotations to boxplots using matplotlib.pyplot.text() to label features, highlight outliers, or provide contextual information. Syntax To display text on a boxplot in Python, use the following syntax − matplotlib.pyplot.text(x, y, text, **kwargs) The text() function takes three main ...

Read More

How to display all rows from dataframe using Pandas?

Manthan Ghasadiya
Manthan Ghasadiya
Updated on 27-Mar-2026 14K+ Views

Pandas is a powerful data manipulation library in Python that provides a flexible way to handle tabular data through its DataFrame object. By default, Pandas truncates DataFrame display output when there are many rows, showing only a limited number to keep output concise and readable. Using to_string() Method The to_string() method displays the complete DataFrame regardless of the number of rows or columns ? import pandas as pd # Create sample data data = { 'Name': ['Sachin Tendulkar', 'Brian Lara', 'Ricky Ponting', 'Jacques Kallis', 'Inzamam-ul-Haq'], 'Country': ['India', ...

Read More

How to create animated meteogram Python?

Manthan Ghasadiya
Manthan Ghasadiya
Updated on 27-Mar-2026 805 Views

Meteograms are graphical representations of weather data over a specific time period, typically displayed on a single plot. They provide a concise and visual way to represent multiple weather variables, such as temperature, humidity, wind speed, precipitation, etc., over time. Meteograms are widely used in meteorology and weather forecasting to analyze and visualize weather trends and changes. A typical Meteogram consists of a time axis along the x-axis, representing the time period of interest, and one or more vertical axes along the y-axis, representing the weather variables being plotted. Each weather variable is typically plotted as a line or ...

Read More

How to Create and Use Signals in Django?

Manthan Ghasadiya
Manthan Ghasadiya
Updated on 27-Mar-2026 4K+ Views

Django signals allow you to trigger specific functions automatically when certain events occur in your application. For example, you can send a confirmation email when a new user registers, or log changes when database objects are modified. Types of Django Signals Django provides three main types of signals ? pre_save/post_save − Triggered when an object is saved to the database pre_delete/post_delete − Triggered when an object is deleted from the database pre_init/post_init − Triggered when a new model instance is created Creating a Django Project with Signals Let's build a complete example that ...

Read More

How to Create an Area Chart in Seaborn?

Manthan Ghasadiya
Manthan Ghasadiya
Updated on 27-Mar-2026 2K+ Views

An Area Chart visualizes the cumulative magnitude of different variables over time or any ordered dimension. It displays data as stacked areas where each layer represents a variable, making it easy to compare the relative contributions of each variable to the total magnitude at any given point. While Seaborn doesn't have a dedicated area chart function, we can create area charts using matplotlib.pyplot.stackplot() combined with Seaborn's styling capabilities for enhanced visual appeal. Syntax The basic syntax for creating an area chart with Seaborn styling ? import seaborn as sns import matplotlib.pyplot as plt sns.set_theme() ...

Read More
Showing 1431–1440 of 61,297 articles
« Prev 1 142 143 144 145 146 6130 Next »
Advertisements