• Collision detection: Transformation


    Introduction stayCollision Detection :TriangleTriangle collision detection from another way of thinking, so far the introduction of static detection, and then look at the dynamic collision detection. The following examples are not checked for compatibility and are recommended to be viewed in the latest chrome browsers. Origin My GitHub Transformation This isSample page。 Canvas basedtranslate、 rotate、 […]

  • Matplotlib for Python data visualization


    1、 Common module import import numpy as np import matplotlib import matplotlib.mlab as mlab import matplotlib.pyplot as plt import matplotlib.font_manager as fm from mpl_toolkits.mplot3d import Axes3D 2、 Solve the problem of abnormal display Chinese random code myfont = fm.FontProperties (fname = font file path) The negative sign is shown as a square matplotlib.rcParams[‘axes.unicode_minus’]=False 3、 Line […]

  • Various special effects of echarts


    Pie chart labels display values Configuration item: option = { title: { Text: ‘project time distribution’, left: ‘center’ }, tooltip: { trigger: ‘item’, formatter: ‘{a} {b} : {c} ({d}%)’ }, legend: { orient: ‘vertical’, left: ‘left’, Data: [‘intelligent project ‘,’ intelligent integration ‘,’ air conditioning control system ‘] }, series: [ { Name: ‘access source’, […]

  • Using Python Matplotlib to draw box diagram and subgraph to solve the problem of coordinate axis label overlapping


    When drawing with Matplotlib, the label of the coordinate axis is too long and overlapped. This paper mainly shows the solutions that are easy to use after testing. I hope it can also help you. For example, there is overlap in the original drawing, such as Figure 1: The code is: data1=[[0.3765,0.3765,0.3765,0.3765,0.3765],[0.3765,0.3765,0.3765,0.3765,0.3765],[0.3765,0.3765,0.3765,0.3765,0.3765],[0.3765,0.3765,0.3765,0.3765,0.3765]] data2=[[0.2985,0.2268,0.2985,0.2996,0.2985],[0.2022,0.3203,0.3141,0.2926,0.2681],[0.2985,0.2668,0.2786,0.2985,0.2985],[0.2985,0.2985,0.2984,0.2978,0.2966]] data3=[[0.7789,0.7698,0.6999,0.7789,0.7789],[0.7788,0.7758,0.7768,0.7698,0.8023],[0.7789,0.7781,0.7789,0.7789,0.7789],[0.7789,0.7782,0.7752,0.7852,0.7654]] Data4 […]

  • Setting the font style of ZedGraph graph in WinForm is to avoid borders


    scene In winforn, set the properties of ZedGraph curve, coordinate axis and scale: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573 If you need to change the font, size, and style of the title of the axis, it is usually //Set the first Y-axis title Mypane. Yaxis. Title. Text = “first Y-axis title”; //Title of the first y-axis Fontspec myfont = new […]

  • Let you understand flex layout and CSS in seconds


    Basic concepts The elements with flex layout are called flex containers, or “containers”. All its child elements automatically become container members, called flex items, or “projects.”. The container has two axes by default: the main axis and the cross axis. The starting position of the main axis (the crossing point with the border) is called […]