Skip to content

Commit

Permalink
fixed the image displaying problem, and updated two posts
Browse files Browse the repository at this point in the history
  • Loading branch information
Promesis committed Feb 17, 2024
1 parent eef9b01 commit dbbb66d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 34 deletions.
6 changes: 5 additions & 1 deletion _posts/cg-opengl/2024-2-17-opengl-intro-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,8 @@ void main()
> 然而,`gl_Position`是一个GLSL预定义的变量,它代表的是当前顶点在屏幕上的位置。我们不需要声明它,只需要使用它即可。
> 在OpenGL的参考卡片中,我们可以看到内置的变量列表:
>
> [![1f2c965ca18ab3498f820cbed3f224af.png](https://s1.imagehub.cc/images/2024/02/17/1f2c965ca18ab3498f820cbed3f224af.png)](https://www.imagehub.cc/image/1V5wKh)
> [![1f2c965ca18ab3498f820cbed3f224af.png](https://s1.imagehub.cc/images/2024/02/17/1f2c965ca18ab3498f820cbed3f224af.png)](https://www.imagehub.cc/image/1V5wKh)
我们的输出是`gl_Position`变量,在截图中可以看到,它是一个`vec4`类型的变量。`vec4`代表的是一个包含4个分量的4维向量。之后我会讲到向量的分量,重组(swizzling)和重组的顺序。
这篇博客尚未写完。敬请期待。
55 changes: 24 additions & 31 deletions _posts/python/2024-2-15-Pandas.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ category: "Python"
toc: true
---

这一本书,让我写了整整一个月!!!这是用来给我们班级同学全面复习Pandas用的。这本书的图片以上传图床的方式呈现,但是可惜图片的显示有些问题,如果看不清,点进去可以在[Postimages](https://postimages.org)中阅览高解析度的图片
这一本书,让我写了整整一个月!!!这是用来给我们班级同学全面复习Pandas用的。这本书的图片以上传图床的方式呈现,但是可惜图片的显示有些问题,如果看不清,点进去可以在图床中阅览高解析度的图片


# **预备知识:Python语法复习拓展**
Expand Down Expand Up @@ -102,7 +102,9 @@ print("y:", y)

| 原来 | 赋值时 | 后来 |
|:----------------:|:-----------------:|:----------------:|
|![](https://i.postimg.cc/1XC6tsrw/before.png) | ![](https://i.postimg.cc/KjvBxRBm/assign.png) | ![](https://i.postimg.cc/hj0Tk9JC/after.png) |
|[![279fde76f2b84910fd259de7c29c42d7.png](https://s1.imagehub.cc/images/2024/02/17/279fde76f2b84910fd259de7c29c42d7.png)](https://www.imagehub.cc/image/1V5ap6) |[![a66243126f9ee1211e803e83dc0f565a.png](https://s1.imagehub.cc/images/2024/02/17/a66243126f9ee1211e803e83dc0f565a.png)](https://www.imagehub.cc/image/1V5v17) | [![7956ace2b69dd0284c3ce0f034b585f2.png](https://s1.imagehub.cc/images/2024/02/17/7956ace2b69dd0284c3ce0f034b585f2.png)](https://www.imagehub.cc/image/1V5Qsk)|




现在,对于选择题中“方括号里应该填什么”的问题,不应该再错了。
Expand Down Expand Up @@ -1840,9 +1842,7 @@ plt.legend()
plt.show()
```



![](https://i.postimg.cc/VkbMfyr0/output-176-0.png)
[![fce1b916fed83b457c50c5ea28f0d868.png](https://s1.imagehub.cc/images/2024/02/17/fce1b916fed83b457c50c5ea28f0d868.png)](https://www.imagehub.cc/image/1V5VDZ)



Expand All @@ -1869,7 +1869,7 @@ plt.show()



![](output_178_0.png)
[![bd2292611f9e4d8a2c17eca6aa1da59a.png](https://s1.imagehub.cc/images/2024/02/17/bd2292611f9e4d8a2c17eca6aa1da59a.png)](https://www.imagehub.cc/image/1V5pBs)



Expand All @@ -1884,7 +1884,8 @@ plt.show()



![](https://i.postimg.cc/85TrmjyL/output-180-0.png)

[![7d4f39fe02410cc356663e2c02c62375.png](https://s1.imagehub.cc/images/2024/02/17/7d4f39fe02410cc356663e2c02c62375.png)](https://www.imagehub.cc/image/1V5Tue)



Expand All @@ -1897,9 +1898,8 @@ plt.boxplot(series_20)
plt.show()
```


[![6e9adbf22ce62ee737863173a50c03b4.png](https://s1.imagehub.cc/images/2024/02/17/6e9adbf22ce62ee737863173a50c03b4.png)](https://www.imagehub.cc/image/1V52pv)

![](https://i.postimg.cc/ZqtN0fp7/output-182-0.png)



Expand All @@ -1916,7 +1916,7 @@ plt.show()



![](https://i.postimg.cc/SsVYTk53/output-184-0.png)
[![f0f97341ce689492928f4460ad5591da.png](https://s1.imagehub.cc/images/2024/02/17/f0f97341ce689492928f4460ad5591da.png)](https://www.imagehub.cc/image/1V5Fbt)



Expand All @@ -1930,8 +1930,7 @@ plt.show()
```



![](https://i.postimg.cc/x8CJBBVC/output-186-0.png)
[![9a64a9cacd3306989636c1f96ce83f4c.png](https://s1.imagehub.cc/images/2024/02/17/9a64a9cacd3306989636c1f96ce83f4c.png)](https://www.imagehub.cc/image/1V5zHr)



Expand All @@ -1952,9 +1951,7 @@ plt.show()



![](https://i.postimg.cc/q7s3K8Gk/output-188-0.png)


[![ab8feec96a367c2a3db86d3406445448.png](https://s1.imagehub.cc/images/2024/02/17/ab8feec96a367c2a3db86d3406445448.png)](https://www.imagehub.cc/image/1V5q4S)

上面的代码中,`plt.plot`函数用于绘制折线图,`plt.legend`函数用于添加图例,`plt.show`函数用于显示绘制的图表。

Expand All @@ -1974,10 +1971,12 @@ plt.show()



![](https://i.postimg.cc/fyrts5Mv/output-190-0.png)



[![b50206014dbb5f7c6648b3cce7894049.png](https://s1.imagehub.cc/images/2024/02/17/b50206014dbb5f7c6648b3cce7894049.png)](https://www.imagehub.cc/image/1V55uL)


上面的代码中,`plt.xlim`函数用于设置x轴的刻度范围,`plt.ylim`函数用于设置y轴的刻度范围。两个函数都接受两个参数,分别表示刻度的最小值和最大值。

### **设置x轴和y轴的刻度标签**
Expand All @@ -1994,7 +1993,7 @@ plt.show()



![](https://i.postimg.cc/wBQ1M96M/output-192-0.png)
[![3fb6e66e92ba587022380e07afed141b.png](https://s1.imagehub.cc/images/2024/02/17/3fb6e66e92ba587022380e07afed141b.png)](https://www.imagehub.cc/image/1V5ASB)



Expand All @@ -2016,8 +2015,7 @@ plt.show()
```



![](https://i.postimg.cc/66jGC6CG/output-194-0.png)
[![e5736c1e574f2d8f32f2da416f8e6127.png](https://s1.imagehub.cc/images/2024/02/17/e5736c1e574f2d8f32f2da416f8e6127.png)](https://www.imagehub.cc/image/1V5SBq)



Expand All @@ -2038,9 +2036,8 @@ plt.show()
```



![](https://i.postimg.cc/Kv13fX5p/output-196-0.png)

[![658a5a4f6f34255b216875370f3d06ed.png](https://s1.imagehub.cc/images/2024/02/17/658a5a4f6f34255b216875370f3d06ed.png)](https://www.imagehub.cc/image/1VAd70)



上面的代码中,`plt.grid`函数用于设置图表的网格线。其接受一个布尔值参数,表示是否显示网格线。
Expand All @@ -2060,8 +2057,8 @@ plt.show()
```


![](https://i.postimg.cc/CL9B6vPh/output-198-0.png)
[![d37f32f1d772f9118fa58733e1bf4f22.png](https://s1.imagehub.cc/images/2024/02/17/d37f32f1d772f9118fa58733e1bf4f22.png)](https://www.imagehub.cc/image/1V5YiU)




Expand All @@ -2080,9 +2077,7 @@ plt.show()

```



![](https://i.postimg.cc/T3mL8rFr/output-200-0.png)
[![4ae384be9b87d85520d0a5f8a3666e43.png](https://s1.imagehub.cc/images/2024/02/17/4ae384be9b87d85520d0a5f8a3666e43.png)](https://www.imagehub.cc/image/1VArez)



Expand All @@ -2102,8 +2097,7 @@ plt.show()



![](https://i.postimg.cc/fbN3MVQ1/output-202-0.png)

[![72fe7f2f628c4f42524c5d439c870ad4.png](https://s1.imagehub.cc/images/2024/02/17/72fe7f2f628c4f42524c5d439c870ad4.png)](https://www.imagehub.cc/image/1VA1Hj)


上面的代码中, `linestyle`参数用于设置图表的线型。使用`--`表示使用虚线线型、使用`-`表示使用实线线型、使用`:`表示使用点线线型。
Expand All @@ -2123,8 +2117,7 @@ plt.show()



![](https://i.postimg.cc/Tw2pWBw9/output-204-0.png)

[![faa4195e0dea8c224752611f345d6af5.png](https://s1.imagehub.cc/images/2024/02/17/faa4195e0dea8c224752611f345d6af5.png)](https://www.imagehub.cc/image/1VAbog)


上面的代码中,`marker`参数用于设置图表的标记。使用`o`表示使用圆点标记、使用`s`表示使用正方形标记、使用`*`表示使用星号标记、使用`+`表示使用加号标记、使用`x`表示使用叉号标记、使用`^`表示使用三角形标记。
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
related: false # not related to any other posts.
title: "关于我博客里的图片"
title: "关于我博客里的图片看不清的声明"
category: "Random Walk"
---

不知道是什么原因,我博客中的图片无法以高解析度的形式显示,只能显示缩略图。我一直使用的是postimages图床,这个图床真的是非常好用,不舍得换。所以之后
不知道是什么原因,我博客中的图片无法以高解析度的形式显示,只能显示缩略图。我一直使用的是[Postimages](https://postimages.org)图床,我承认这个图床真的是非常好用。但看不清毕竟是一个致命的问题,所以之后我会使用[ImageHub](https://www.imagehub.cc)来代替。过段时间我应该可以把所有图床链接更改为ImageHub。

对所有读者造成的不便,敬请谅解。

0 comments on commit dbbb66d

Please sign in to comment.