Sunday, December 22, 2024

My own standing picture of Cirno for my own Yukkuri kaisetsu!


 


Posted on my pixiv https://www.pixiv.net/en/artworks/125406544

NicoNico https://www.nicovideo.jp/watch/sm44449935 https://www.nicovideo.jp/watch/sm44454130

 


 























Touhou Project Fan Art Disclaimer

This artwork is an unofficial fan creation based on Touhou Project by Team Shanghai Alice (ZUN). It is not affiliated with or endorsed by the official creators.

Artwork by Art_Blue_Liberalism.

Sunday, December 01, 2024

My own standing picture of Yuyuko for my own Yukkuri kaisetsu!

 


I have created the standing picture of Myonchan (Youmu) for my own Yukkuri kaisetsu! GIF pic is posted on my pixiv page: https://www.pixiv.net/en/artworks/124825304

niconico https://www.nicovideo.jp/watch/sm44384565

https://www.nicovideo.jp/watch/sm44400525

Also tested on Yukkuri Maker ver 4 and uploaded onto my YouTube channel: 


Used in this video:


 


Followings are the parts

Main Body

 


Mouth









Eyes







 

 

Eye brows









 

 Background images

https://www.ac-illust.com/main/detail.php?id=24196752&word=%E3%83%95%E3%83%A9%E3%83%B3%E3%82%B9


https://es.pinterest.com/pin/441141726007193081/

https://www.ac-illust.com/main/search_result.php?word=%E8%A3%BD%E8%8F%93%E6%9D%90%E6%96%99&search_word=%E3%82%AB%E3%83%AC%E3%83%BC+%E6%9D%90%E6%96%99&page=0


https://commons.nicovideo.jp/works/nc374941

https://photo-chips.com/?act=bukken&id=3119&html=tp_item.html





Touhou Project Fan Art Disclaimer

This artwork is an unofficial fan creation based on Touhou Project by Team Shanghai Alice (ZUN). It is not affiliated with or endorsed by the official creators.

Artwork by Art_Blue_Liberalism.


Wednesday, November 27, 2024

Iiizunamaru-sama and Tengu's Barley-Rice (Actual natural monument) - Touhou Project

 


 

Posted on my pixiv page: https://www.pixiv.net/en/artworks/124668895 and NicoNico-Douga: https://www.nicovideo.jp/watch/sm44366753

 
27th November is the day of Megumu Iizunamaru: Iiizunamaru-sama and Tengu's Barley-Rice (Actual natural monument)
Arch-Tengu. Megumu iizunamaru and Tengu's Barley-Rice (Actual natural monument)  







Touhou Project Fan Art Disclaimer

This artwork is an unofficial fan creation based on Touhou Project by Team Shanghai Alice (ZUN). It is not affiliated with or endorsed by the official creators.

Artwork by Art_Blue_Liberalism.


Tuesday, November 26, 2024

Python, matplotlib.animation: Test showing changing values of Index Vs Stock

I am testing "matplotlib.animation" using the stock market index (NASDAQ in this case example) and the stock market price (Amazon in this case example)

# Parameter Adjustment

# Set Ticker Symbol
# e.g. Ticker="^GSPC" for S&P 500, Ticker="NDAQ" for NASDAQ, Ticker="TOPX" for TOPIX
Ticker_index="NDAQ" # Ticker sympol for the index
# Ticker="AMZN" for Amazon, Ticker="NTDOY" for NINTENDO
Ticker_stock="AMZN" # Ticker symbok for a stock

# Set the number of years to download data
No_Years_Data=1;

# Set the numbers of days for the future forecast
No_Days_FutureForecast=250*1


# For mathematics
import numpy as np
import math
import statistics

# For plotting
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
import matplotlib.animation as animation
import itertools # for joining lists inside a list
from itertools import count

# Setting Plot Size
plt.rcParams["figure.figsize"] = (10,7)

# Calling stock values from Yahoo finance API
# Ref. https://www.kaggle.com/code/alessandrozanette/s-p500-analysis-using-yfinance-data
import yfinance as yf
%config InlineBackend.figure_format='retina'
import warnings
warnings.filterwarnings("ignore")

# Now, let's retrieve the data of the past x years using yfinance
Years="".join([str(No_Years_Data),'y']) # Set the number of years ! Adjust
Index = yf.Ticker(Ticker_index).history(period=Years)  # Ticker Symbokl ! Adjust !
Stock = yf.Ticker(Ticker_stock).history(period=Years)  # Ticker Symbokl ! Adjust !
# Let's take a look at the data
display(Index.tail())
display(Stock.tail())

# Change to list
# https://stackoverflow.com/questions/39597553/from-datetimeindex-to-list-of-times
Dates=Stock.index.tolist()
Dates=[Dates[t].strftime("%Y-%m-%d") for t in range(len(Dates))]
Values_Index=Index["Close"].tolist()
Values_Stock=Stock["Close"].tolist()

# Taking a difference of natural log of these values
y_1=np.diff(np.log(Index["Close"])).tolist()
y_2=np.diff(np.log(Stock["Close"])).tolist()



# Inline animations in Jupyter
# https://stackoverflow.com/questions/43445103/inline-animations-in-jupyter
epsilon=[] # storing errors
Window=30; # business days in 1.5 months
for b in range(math.floor(len(y_1)/Window)-1):
    st=0+Window*b; ed=st+Window; print(st,ed)

    plt.rcParams["animation.html"] = "jshtml"
    plt.rcParams['figure.dpi'] = 150

    fig, ax = plt.subplots()
    x_value = []
    y1_value = []
    y2_value = []
    epsilon_value=[]

    count_ = count();
    def animate(a):
        counts=next(count_)
        x_value=Dates[st+counts:ed+counts].copy()
        y1_value=y_1[st+counts:ed+counts].copy()
        y2_value=y_2[st+counts:ed+counts].copy()
        #epsilon_value=[abs((y1_value[w]-y2_value[w])/y2_value[w]) for w in range(len(y1_value))] # Relative
        epsilon_value=[abs((y1_value[w]-y2_value[w])) for w in range(len(y1_value))] # Absolute
        ax.cla()
        ax.plot(x_value,y1_value, label=Ticker_index, color='slategrey')
        ax.plot(x_value,y2_value, label=Ticker_stock, color='darkseagreen')
        plt.legend(loc="upper right")
        plt.xticks(rotation=90)
        plt.title(f'From {Dates[st]} to {Dates[ed+Window]}')
        ax.set_xlim(0,Window)
        epsilon.append(epsilon_value)
    Animation=animation.FuncAnimation(fig, animate, frames=Window, interval = 500)
    display(Animation)

# Separating figures
plt.show(block=False)

# Analysing errors
# joininig lists inside a list
epsilon=list(itertools.chain.from_iterable(epsilon))

print(statistics.mean(epsilon))
plt.figure(); plt.hist(epsilon); plt.show(block=False)